GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Person.Emails() |
Modifier and Type | Method and Description |
---|---|
Person.Emails |
clone() |
Boolean |
getPrimary()
If "true", indicates this email address is the person's primary one.
|
String |
getType()
The type of address.
|
String |
getValue()
The email address.
|
Person.Emails |
set(String fieldName,
Object value) |
Person.Emails |
setPrimary(Boolean primary)
If "true", indicates this email address is the person's primary one.
|
Person.Emails |
setType(String type)
The type of address.
|
Person.Emails |
setValue(String value)
The email address.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getPrimary()
null
for nonepublic Person.Emails setPrimary(Boolean primary)
primary
- primary or null
for nonepublic String getType()
null
for nonepublic Person.Emails setType(String type)
type
- type or null
for nonepublic String getValue()
null
for nonepublic Person.Emails setValue(String value)
value
- value or null
for nonepublic Person.Emails set(String fieldName, Object value)
set
in class GenericJson
public Person.Emails clone()
clone
in class GenericJson