@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-12-21") public class SimpleThrift extends Object implements TBase<SimpleThrift,SimpleThrift._Fields>, Serializable, Cloneable, Comparable<SimpleThrift>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleThrift._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
| Modifier and Type | Field and Description |
|---|---|
ByteBuffer |
bar
field #2
|
double |
baz
field #3
|
long |
foo
field #1
|
static Map<SimpleThrift._Fields,FieldMetaData> |
metaDataMap |
| Constructor and Description |
|---|
SimpleThrift() |
SimpleThrift(SimpleThrift other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
bufferForBar() |
void |
clear() |
int |
compareTo(SimpleThrift other) |
SimpleThrift |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(SimpleThrift that) |
SimpleThrift._Fields |
fieldForId(int fieldId) |
byte[] |
getBar()
field #2
|
double |
getBaz()
field #3
|
Object |
getFieldValue(SimpleThrift._Fields field) |
long |
getFoo()
field #1
|
int |
hashCode() |
boolean |
isSet(SimpleThrift._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetBar()
Returns true if field bar is set (has been assigned a value) and false otherwise
|
boolean |
isSetBaz()
Returns true if field baz is set (has been assigned a value) and false otherwise
|
boolean |
isSetFoo()
Returns true if field foo is set (has been assigned a value) and false otherwise
|
void |
read(TProtocol iprot) |
SimpleThrift |
setBar(byte[] bar)
field #2
|
SimpleThrift |
setBar(ByteBuffer bar) |
void |
setBarIsSet(boolean value) |
SimpleThrift |
setBaz(double baz)
field #3
|
void |
setBazIsSet(boolean value) |
void |
setFieldValue(SimpleThrift._Fields field,
Object value) |
SimpleThrift |
setFoo(long foo)
field #1
|
void |
setFooIsSet(boolean value) |
String |
toString() |
void |
unsetBar() |
void |
unsetBaz() |
void |
unsetFoo() |
void |
validate() |
void |
write(TProtocol oprot) |
public long foo
public ByteBuffer bar
public double baz
public static final Map<SimpleThrift._Fields,FieldMetaData> metaDataMap
public SimpleThrift()
public SimpleThrift(SimpleThrift other)
public SimpleThrift deepCopy()
deepCopy in interface TBase<SimpleThrift,SimpleThrift._Fields>public void clear()
clear in interface TBase<SimpleThrift,SimpleThrift._Fields>public long getFoo()
public SimpleThrift setFoo(long foo)
public void unsetFoo()
public boolean isSetFoo()
public void setFooIsSet(boolean value)
public byte[] getBar()
public ByteBuffer bufferForBar()
public SimpleThrift setBar(byte[] bar)
public SimpleThrift setBar(ByteBuffer bar)
public void unsetBar()
public boolean isSetBar()
public void setBarIsSet(boolean value)
public double getBaz()
public SimpleThrift setBaz(double baz)
public void unsetBaz()
public boolean isSetBaz()
public void setBazIsSet(boolean value)
public void setFieldValue(SimpleThrift._Fields field, Object value)
setFieldValue in interface TBase<SimpleThrift,SimpleThrift._Fields>public Object getFieldValue(SimpleThrift._Fields field)
getFieldValue in interface TBase<SimpleThrift,SimpleThrift._Fields>public boolean isSet(SimpleThrift._Fields field)
isSet in interface TBase<SimpleThrift,SimpleThrift._Fields>public boolean equals(SimpleThrift that)
public int compareTo(SimpleThrift other)
compareTo in interface Comparable<SimpleThrift>public SimpleThrift._Fields fieldForId(int fieldId)
fieldForId in interface TBase<SimpleThrift,SimpleThrift._Fields>public void read(TProtocol iprot) throws TException
read in interface TBase<SimpleThrift,SimpleThrift._Fields>TExceptionpublic void write(TProtocol oprot) throws TException
write in interface TBase<SimpleThrift,SimpleThrift._Fields>TExceptionpublic void validate()
throws TException
TExceptionCopyright © 2013–2016 AdGear Technologies Inc.. All rights reserved.