public class HostPair extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<HostPair>
| Modifier and Type | Class and Description |
|---|---|
static class |
HostPair.Builder |
| Modifier and Type | Field and Description |
|---|---|
HostAddr |
from_host |
static int |
FROM_HOST |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
HostAddr |
to_host |
static int |
TO_HOST |
| Constructor and Description |
|---|
HostPair() |
HostPair(HostAddr from_host,
HostAddr to_host) |
HostPair(HostPair other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static HostPair.Builder |
builder() |
int |
compareTo(HostPair other) |
HostPair |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
HostAddr |
getFrom_host() |
HostAddr |
getTo_host() |
int |
hashCode() |
boolean |
isSetFrom_host() |
boolean |
isSetTo_host() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
HostPair |
setFrom_host(HostAddr from_host) |
void |
setFrom_hostIsSet(boolean __value) |
HostPair |
setTo_host(HostAddr to_host) |
void |
setTo_hostIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetFrom_host() |
void |
unsetTo_host() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public HostAddr from_host
public HostAddr to_host
public static final int FROM_HOST
public static final int TO_HOST
public HostPair()
public HostPair(HostPair other)
public static HostPair.Builder builder()
public HostPair deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic HostAddr getFrom_host()
public void unsetFrom_host()
public boolean isSetFrom_host()
public void setFrom_hostIsSet(boolean __value)
public HostAddr getTo_host()
public void unsetTo_host()
public boolean isSetTo_host()
public void setTo_hostIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(HostPair other)
compareTo in interface Comparable<HostPair>public void read(com.facebook.thrift.protocol.TProtocol iprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBaseread in interface com.facebook.thrift.TBaseiprot - Input protocolcom.facebook.thrift.TExceptionpublic void write(com.facebook.thrift.protocol.TProtocol oprot)
throws com.facebook.thrift.TException
com.facebook.thrift.TBasewrite in interface com.facebook.thrift.TBaseoprot - Output protocolcom.facebook.thrift.TExceptionpublic String toString(int indent, boolean prettyPrint)
com.facebook.thrift.TBasetoString in interface com.facebook.thrift.TBaseindent - The level of indentation desiredprettyPrint - Set pretty printing on/offpublic void validate()
throws com.facebook.thrift.TException
com.facebook.thrift.TExceptionCopyright © 2022. All rights reserved.