public class Duration extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<Duration>
| Modifier and Type | Class and Description |
|---|---|
static class |
Duration.Builder |
| Modifier and Type | Field and Description |
|---|---|
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
microseconds |
static int |
MICROSECONDS |
int |
months |
static int |
MONTHS |
long |
seconds |
static int |
SECONDS |
| Constructor and Description |
|---|
Duration() |
Duration(Duration other)
Performs a deep copy on other.
|
Duration(long seconds,
int microseconds,
int months) |
| Modifier and Type | Method and Description |
|---|---|
static Duration.Builder |
builder() |
int |
compareTo(Duration other) |
Duration |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
int |
getMicroseconds() |
int |
getMonths() |
long |
getSeconds() |
int |
hashCode() |
boolean |
isSetMicroseconds() |
boolean |
isSetMonths() |
boolean |
isSetSeconds() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
Duration |
setMicroseconds(int microseconds) |
void |
setMicrosecondsIsSet(boolean __value) |
Duration |
setMonths(int months) |
void |
setMonthsIsSet(boolean __value) |
Duration |
setSeconds(long seconds) |
void |
setSecondsIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetMicroseconds() |
void |
unsetMonths() |
void |
unsetSeconds() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public long seconds
public int microseconds
public int months
public static final int SECONDS
public static final int MICROSECONDS
public static final int MONTHS
public Duration()
public Duration(long seconds,
int microseconds,
int months)
public Duration(Duration other)
public static Duration.Builder builder()
public Duration deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic long getSeconds()
public Duration setSeconds(long seconds)
public void unsetSeconds()
public boolean isSetSeconds()
public void setSecondsIsSet(boolean __value)
public int getMicroseconds()
public Duration setMicroseconds(int microseconds)
public void unsetMicroseconds()
public boolean isSetMicroseconds()
public void setMicrosecondsIsSet(boolean __value)
public int getMonths()
public Duration setMonths(int months)
public void unsetMonths()
public boolean isSetMonths()
public void setMonthsIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(Duration other)
compareTo in interface Comparable<Duration>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.