edu.stolaf.cs.wmrserver.thrift
Class DataPage
java.lang.Object
edu.stolaf.cs.wmrserver.thrift.DataPage
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DataPage>, org.apache.thrift.TBase<DataPage,DataPage._Fields>
public class DataPage
- extends java.lang.Object
- implements org.apache.thrift.TBase<DataPage,DataPage._Fields>, java.io.Serializable, java.lang.Cloneable
- See Also:
- Serialized Form
Nested Class Summary |
static class |
DataPage._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
metaDataMap
public static final java.util.Map<DataPage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
DataPage
public DataPage()
DataPage
public DataPage(java.lang.String data,
int totalPages)
DataPage
public DataPage(DataPage other)
- Performs a deep copy on other.
deepCopy
public DataPage deepCopy()
- Specified by:
deepCopy
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
clear
public void clear()
- Specified by:
clear
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
getData
public java.lang.String getData()
setData
public void setData(java.lang.String data)
unsetData
public void unsetData()
isSetData
public boolean isSetData()
- Returns true if field data is set (has been assigned a value) and false otherwise
setDataIsSet
public void setDataIsSet(boolean value)
getTotalPages
public int getTotalPages()
setTotalPages
public void setTotalPages(int totalPages)
unsetTotalPages
public void unsetTotalPages()
isSetTotalPages
public boolean isSetTotalPages()
- Returns true if field totalPages is set (has been assigned a value) and false otherwise
setTotalPagesIsSet
public void setTotalPagesIsSet(boolean value)
setFieldValue
public void setFieldValue(DataPage._Fields field,
java.lang.Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
getFieldValue
public java.lang.Object getFieldValue(DataPage._Fields field)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
isSet
public boolean isSet(DataPage._Fields field)
- Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
- Specified by:
isSet
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(DataPage that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
compareTo
public int compareTo(DataPage other)
- Specified by:
compareTo
in interface java.lang.Comparable<DataPage>
fieldForId
public DataPage._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
read
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
- Specified by:
read
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
- Throws:
org.apache.thrift.TException
write
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
write
in interface org.apache.thrift.TBase<DataPage,DataPage._Fields>
- Throws:
org.apache.thrift.TException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
validate
public void validate()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException