public static class Person.Builder extends SpecificRecordBuilderBase<Person> implements RecordBuilder<Person>
Modifier and Type | Method and Description |
---|---|
Person |
build() |
Person.Builder |
clearAge()
Clears the value of the 'age' field
|
Person.Builder |
clearFirstname()
Clears the value of the 'firstname' field
|
Person.Builder |
clearLastname()
Clears the value of the 'lastname' field
|
Person.Builder |
clearPhone()
Clears the value of the 'phone' field
|
Integer |
getAge()
Gets the value of the 'age' field
|
String |
getFirstname()
Gets the value of the 'firstname' field
|
String |
getLastname()
Gets the value of the 'lastname' field
|
String |
getPhone()
Gets the value of the 'phone' field
|
boolean |
hasAge()
Checks whether the 'age' field has been set
|
boolean |
hasFirstname()
Checks whether the 'firstname' field has been set
|
boolean |
hasLastname()
Checks whether the 'lastname' field has been set
|
boolean |
hasPhone()
Checks whether the 'phone' field has been set
|
Person.Builder |
setAge(int value)
Sets the value of the 'age' field
|
Person.Builder |
setFirstname(String value)
Sets the value of the 'firstname' field
|
Person.Builder |
setLastname(String value)
Sets the value of the 'lastname' field
|
Person.Builder |
setPhone(String value)
Sets the value of the 'phone' field
|
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validate
public String getFirstname()
public Person.Builder setFirstname(String value)
public boolean hasFirstname()
public Person.Builder clearFirstname()
public String getLastname()
public Person.Builder setLastname(String value)
public boolean hasLastname()
public Person.Builder clearLastname()
public String getPhone()
public Person.Builder setPhone(String value)
public boolean hasPhone()
public Person.Builder clearPhone()
public Integer getAge()
public Person.Builder setAge(int value)
public boolean hasAge()
public Person.Builder clearAge()
public Person build()
build
in interface RecordBuilder<Person>
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.