I can build a simple stub that has an array list as a property, then implement some simple data access methods quickly, as Listing 2 shows.
我就可以构建一个简单的存根(具有作为属性的数组列表),然后快速实现一些简单数据访问方法,如清单2所示。
You need only specify the @Property annotation on the basic getter and it will be inherited by the rest of the methods that access that configuration field.
只需在基本 getter 上指定 @Property 标注,剩下的访问那个配置字段的方法将继承这一点。
The other two methods are proxies for the get and set methods used to access an int property value.
另外两个方法是用于访问一个int属性值的get和set方法的代理。
应用推荐