public class Address extends SpecificRecordBase implements SpecificRecord
Modifier and Type | Class and Description |
---|---|
static class |
Address.Builder
RecordBuilder for Address instances.
|
Modifier and Type | Field and Description |
---|---|
String |
city
Deprecated.
|
static Schema |
SCHEMA$ |
String |
state
Deprecated.
|
String |
street
Deprecated.
|
int |
zip
Deprecated.
|
Constructor and Description |
---|
Address() |
Modifier and Type | Method and Description |
---|---|
Object |
get(int field$) |
String |
getCity()
Gets the value of the 'city' field.
|
Schema |
getSchema() |
String |
getState()
Gets the value of the 'state' field.
|
String |
getStreet()
Gets the value of the 'street' field.
|
Integer |
getZip()
Gets the value of the 'zip' field.
|
static Address.Builder |
newBuilder()
Creates a new Address RecordBuilder
|
static Address.Builder |
newBuilder(Address.Builder other)
Creates a new Address RecordBuilder by copying an existing Builder
|
static Address.Builder |
newBuilder(Address other)
Creates a new Address RecordBuilder by copying an existing Address instance
|
void |
put(int field$,
Object value$) |
void |
setCity(String value)
Sets the value of the 'city' field.
|
void |
setState(String value)
Sets the value of the 'state' field.
|
void |
setStreet(String value)
Sets the value of the 'street' field.
|
void |
setZip(Integer value)
Sets the value of the 'zip' field.
|
public static final Schema SCHEMA$
@Deprecated public String street
@Deprecated public String city
@Deprecated public String state
@Deprecated public int zip
public Schema getSchema()
getSchema
in interface GenericContainer
getSchema
in class SpecificRecordBase
public Object get(int field$)
get
in interface IndexedRecord
get
in class SpecificRecordBase
public void put(int field$, Object value$)
put
in interface IndexedRecord
put
in class SpecificRecordBase
public String getStreet()
public void setStreet(String value)
value
- the value to set.public String getCity()
public void setCity(String value)
value
- the value to set.public String getState()
public void setState(String value)
value
- the value to set.public Integer getZip()
public void setZip(Integer value)
value
- the value to set.public static Address.Builder newBuilder()
public static Address.Builder newBuilder(Address.Builder other)
public static Address.Builder newBuilder(Address other)
Copyright (c) 2011, 2015 Oracle and/or its affiliates. All rights reserved.