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