Modifier and Type | Method and Description |
---|---|
Employee |
build() |
Employee.Builder |
clearDepartment()
Clears the value of the 'department' field
|
Employee.Builder |
clearName()
Clears the value of the 'name' field
|
Employee.Builder |
clearSalary()
Clears the value of the 'salary' field
|
CharSequence |
getDepartment()
Gets the value of the 'department' field
|
CharSequence |
getName()
Gets the value of the 'name' field
|
Integer |
getSalary()
Gets the value of the 'salary' field
|
boolean |
hasDepartment()
Checks whether the 'department' field has been set
|
boolean |
hasName()
Checks whether the 'name' field has been set
|
boolean |
hasSalary()
Checks whether the 'salary' field has been set
|
Employee.Builder |
setDepartment(CharSequence value)
Sets the value of the 'department' field
|
Employee.Builder |
setName(CharSequence value)
Sets the value of the 'name' field
|
Employee.Builder |
setSalary(int value)
Sets the value of the 'salary' field
|
public CharSequence getName()
public Employee.Builder setName(CharSequence value)
public boolean hasName()
public Employee.Builder clearName()
public Integer getSalary()
public Employee.Builder setSalary(int value)
public boolean hasSalary()
public Employee.Builder clearSalary()
public CharSequence getDepartment()
public Employee.Builder setDepartment(CharSequence value)
public boolean hasDepartment()
public Employee.Builder clearDepartment()
Copyright © 2016 The Apache Software Foundation. All rights reserved.