public class Time extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<Time>
| Modifier and Type | Class and Description |
|---|---|
static class |
Time.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte |
hour |
static int |
HOUR |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
int |
microsec |
static int |
MICROSEC |
byte |
minute |
static int |
MINUTE |
byte |
sec |
static int |
SEC |
| Constructor and Description |
|---|
Time() |
Time(byte hour,
byte minute,
byte sec,
int microsec) |
Time(Time other)
Performs a deep copy on other.
|
| Modifier and Type | Method and Description |
|---|---|
static Time.Builder |
builder() |
int |
compareTo(Time other) |
Time |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
Object |
getFieldValue(int fieldID) |
byte |
getHour() |
int |
getMicrosec() |
byte |
getMinute() |
byte |
getSec() |
int |
hashCode() |
boolean |
isSetHour() |
boolean |
isSetMicrosec() |
boolean |
isSetMinute() |
boolean |
isSetSec() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
void |
setFieldValue(int fieldID,
Object __value) |
Time |
setHour(byte hour) |
void |
setHourIsSet(boolean __value) |
Time |
setMicrosec(int microsec) |
void |
setMicrosecIsSet(boolean __value) |
Time |
setMinute(byte minute) |
void |
setMinuteIsSet(boolean __value) |
Time |
setSec(byte sec) |
void |
setSecIsSet(boolean __value) |
String |
toString() |
String |
toString(int indent,
boolean prettyPrint)
Creates an indented String representation for pretty printing
|
void |
unsetHour() |
void |
unsetMicrosec() |
void |
unsetMinute() |
void |
unsetSec() |
void |
validate() |
void |
write(com.facebook.thrift.protocol.TProtocol oprot)
Writes the objects out to the protocol
|
public byte hour
public byte minute
public byte sec
public int microsec
public static final int HOUR
public static final int MINUTE
public static final int SEC
public static final int MICROSEC
public Time()
public Time(byte hour,
byte minute,
byte sec,
int microsec)
public Time(Time other)
public static Time.Builder builder()
public Time deepCopy()
com.facebook.thrift.TBasex.getClass() == x.deepCopy().getClass() should be true for any
TBase.deepCopy in interface com.facebook.thrift.TBasepublic byte getHour()
public Time setHour(byte hour)
public void unsetHour()
public boolean isSetHour()
public void setHourIsSet(boolean __value)
public byte getMinute()
public Time setMinute(byte minute)
public void unsetMinute()
public boolean isSetMinute()
public void setMinuteIsSet(boolean __value)
public byte getSec()
public Time setSec(byte sec)
public void unsetSec()
public boolean isSetSec()
public void setSecIsSet(boolean __value)
public int getMicrosec()
public Time setMicrosec(int microsec)
public void unsetMicrosec()
public boolean isSetMicrosec()
public void setMicrosecIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(Time other)
compareTo in interface Comparable<Time>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.