public class Date extends Object implements com.facebook.thrift.TBase, Serializable, Cloneable, Comparable<Date>
| Modifier and Type | Class and Description |
|---|---|
static class |
Date.Builder |
| Modifier and Type | Field and Description |
|---|---|
byte |
day |
static int |
DAY |
static Map<Integer,com.facebook.thrift.meta_data.FieldMetaData> |
metaDataMap |
byte |
month |
static int |
MONTH |
short |
year |
static int |
YEAR |
| Constructor and Description |
|---|
Date() |
Date(Date other)
Performs a deep copy on other.
|
Date(short year,
byte month,
byte day) |
| Modifier and Type | Method and Description |
|---|---|
static Date.Builder |
builder() |
int |
compareTo(Date other) |
Date |
deepCopy()
Returns a copy of `this`.
|
boolean |
equals(Object _that) |
byte |
getDay() |
Object |
getFieldValue(int fieldID) |
byte |
getMonth() |
short |
getYear() |
int |
hashCode() |
boolean |
isSetDay() |
boolean |
isSetMonth() |
boolean |
isSetYear() |
void |
read(com.facebook.thrift.protocol.TProtocol iprot)
Reads the TObject from the given input protocol.
|
Date |
setDay(byte day) |
void |
setDayIsSet(boolean __value) |
void |
setFieldValue(int fieldID,
Object __value) |
Date |
setMonth(byte month) |
void |
setMonthIsSet(boolean __value) |
Date |
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 |
unsetMonth() |
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 static final int YEAR
public static final int MONTH
public static final int DAY
public Date()
public Date(short year,
byte month,
byte day)
public Date(Date other)
public static Date.Builder builder()
public Date 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 Date setYear(short year)
public void unsetYear()
public boolean isSetYear()
public void setYearIsSet(boolean __value)
public byte getMonth()
public Date setMonth(byte month)
public void unsetMonth()
public boolean isSetMonth()
public void setMonthIsSet(boolean __value)
public byte getDay()
public Date setDay(byte day)
public void unsetDay()
public boolean isSetDay()
public void setDayIsSet(boolean __value)
public void setFieldValue(int fieldID,
Object __value)
public Object getFieldValue(int fieldID)
public int compareTo(Date other)
compareTo in interface Comparable<Date>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.