• Listing 1 shows a Person class implementing Serializable.

    清单1显示一个实现Serializable的person

    youdao

  • Note how I adorned the Person class with the abstract keyword.

    请注意如何使用abstract关键字装饰person

    youdao

  • PersonV2, shown in Listing 3, introduces a field for gender to the original Person class.

    清单3PersonV2原先Person 类的基础上引入一个表示性别的新字段

    youdao

  • Listing 1 is a recap of the simple Person class I've used in my introduction to db4o so far.

    清单1重述介绍db4o一直使用一个简单person

    youdao

  • Consider a Serializable Person class that defines a friend of its own, as shown in Listing 1.

    Serializable Person定义一个自己元,如清单1所

    youdao

  • In Listing 9, I've created a person class to represent the person element defined in Listing 6.

    清单9中,已经创建了一个Person表示在清单6中定义person元素

    youdao

  • In Listing 10, you can see the mapping code that maps an instance of the above-defined Person class.

    清单10中,可以看到对上面定义的Person实例进行映射代码

    youdao

  • So, for example, say you needed the list of children in the Person class to always be sorted by age.

    例如假设需要person中的孩子总是按年龄排序

    youdao

  • The data model in the hello world application is simply a Person class with a name and an id property.

    Helloworld应用中的数据模型仅仅一个nameid属性person

    youdao

  • Use this tool to draw a line from the Employee class to the Person class to signify this relationship.

    工具EmployeePerson条直线可以表示这种关系。

    youdao

  • As you add validation methods to the Person class, the call to valid? will automatically become smarter.

    随着Person中加入验证方法valid自动的根据这些方法进行验证。

    youdao

  • Listing 4 provides enough information for Jenabean to save and load instances of the Person class reliably.

    清单4Jenabean提供足够信息来可靠地保存装载person实例

    youdao

  • There's a bit of code duplication in the Person class, but I'll leave that for a later refactoring exercise.

    person一些重复代码留给稍后重构练习

    youdao

  • If a Person class hasn't been added to the model yet, it asserts the new class as an instance of owl: class.

    如果person没有添加模型中,将断言一个作为owlClass实例。

    youdao

  • To create the Person class, click on the class icon in the tool palette and draw a box on the design surface.

    创建person单击工具面板Class图标设计界面一个方框

    youdao

  • Obviously, I don't have a Person class yet so my test is having some trouble runningJUnit gives me a red bar.

    显然没有person所以运行该测试出现问题JUnit给出一个红条。

    youdao

  • I show that in my model by adding a separate Person class and creating associations to the Victim and Witness classes.

    通过以下方法模型展示这一点:添加一个单独person创建Victimwitness关联

    youdao

  • Since the Person class is what the app's data access layer returns, it is definitely not suited for consumption by the UI.

    由于Person应用数据访问返回东西绝对适合直接UI使用。

    youdao

  • Let's say that I have a Person class which has a spouse property, so that the spouse of a spouse point to the same object.

    我们假设Person一个spouse(配偶)属性以便spousespouse指向同一个对象

    youdao

  • This is where almost every object-oriented programming textbook starts: you have a Person class with fields like Name and Age.

    就是几乎每一个面向对象编程教材开始的地方:具有包含类似Name Age 字段的Person

    youdao

  • Knowing that Serialization allows for refactoring, let's see what happens when we decide to add a new field to the Person class.

    既然已经知道序列化允许重构我们来看看字段添加person类中时,会发生什么事情。

    youdao

  • For example, when the Person class was created, it displayed syntax errors because one of its attributes, Address, was undefined.

    例如person创建时显示语法错误是因为一个属性address没有定义。

    youdao

  • You can use Eclipse's refactoring tools to easily extract an interface from the Person class in Listing 3. Let's call that a Thing.

    可以使用Eclipse重构工具清单3中的Person轻松提取一个接口

    youdao

  • For example, if you were to add height and weight to the Person class, you would need to update both tables, which is a lot of work.

    例如如果要向Person添加高度重量需要同时更新两个会涉及很多工作

    youdao

  • Suppose the sensitive data in the Person class were the age field; after all, a lady never reveals her age and a gentleman never tells.

    假设person中的敏感数据age字段毕竟女士忌谈年龄

    youdao

  • You have a Person class that includes some basic attributes (like name and phone number) and also points to an OfficeLocation, which is also an object class.

    其中Person包含一些基本性质(比如姓名电话),同时指向对象OfficeLocation

    youdao

  • What we need, therefore, is the serialVersionUID field, which is calculated by running the JDK serialver command against the original (or V1) version of the Person class.

    因此我们需要serialVersionUID字段通过原始V1版本Person运行JDKserialver命令计算出的。

    youdao

  • They perfectly retain the semantics of the POJO while drastically reducing the amount of code you need to write. Listing 9 shows a "shorthand" person class written in Groovy

    它们完全保留POJO语义同时显著减少需要编写代码

    youdao

  • As I've done in previous articles in this series, I'll use the Person class as a starting point for exploring Scala's inheritance system. Listing 1 shows the Person class definition.

    系列之前文章类似,使用Person作为起点探索Scala继承系统

    youdao

  • Finally, you can diagram the relationship between the classes by clicking on the Association button (fifth from the left) and drawing a line from the Person class to the Address class.

    最后可以单击association按钮(起第五),绘制一条person指向address线段,从而绘制两个类之间关系

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定