com.evernote.edam.notestore
Class NoteVersionId

java.lang.Object
  extended by com.evernote.edam.notestore.NoteVersionId
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<NoteVersionId>, org.apache.thrift.TBase<NoteVersionId._Fields>

public class NoteVersionId
extends java.lang.Object
implements org.apache.thrift.TBase<NoteVersionId._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<NoteVersionId>

Identfying information about previous versions of a note that are backed up within Evernote's servers. Used in the return value of the listNoteVersions call.

updateSequenceNum
The update sequence number for the Note when it last had this content. This serves to uniquely identify each version of the note, since USN values are unique within an account for each update.
updated
The 'updated' time that was set on the Note when it had this version of the content. This is the user-modifiable modification time on the note, so it's not reliable for guaranteeing the order of various versions. (E.g. if someone modifies the note, then changes this time manually into the past and then updates the note again.)
serviceUpdated
A timestamp that holds the date and time when the Note that had this version of the content was saved or synchronized on the service. This may be different than the 'updated' time visible on the note in a client, which is a user-editable field that is (therefore) not reliable for determining the order of changes.

See Also:
Serialized Form

Nested Class Summary
static class NoteVersionId._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<NoteVersionId._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
NoteVersionId()
           
NoteVersionId(int updateSequenceNum, long updated, long serviceUpdated)
           
NoteVersionId(NoteVersionId other)
          Performs a deep copy on other.
 
Method Summary
 NoteVersionId clone()
          Deprecated. 
 int compareTo(NoteVersionId other)
           
 NoteVersionId deepCopy()
           
 boolean equals(NoteVersionId that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(NoteVersionId._Fields field)
           
 long getServiceUpdated()
           
 long getUpdated()
           
 int getUpdateSequenceNum()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(NoteVersionId._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetServiceUpdated()
          Returns true if field serviceUpdated is set (has been asigned a value) and false otherwise
 boolean isSetUpdated()
          Returns true if field updated is set (has been asigned a value) and false otherwise
 boolean isSetUpdateSequenceNum()
          Returns true if field updateSequenceNum is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(NoteVersionId._Fields field, java.lang.Object value)
           
 void setServiceUpdated(long serviceUpdated)
           
 void setServiceUpdatedIsSet(boolean value)
           
 void setUpdated(long updated)
           
 void setUpdatedIsSet(boolean value)
           
 void setUpdateSequenceNum(int updateSequenceNum)
           
 void setUpdateSequenceNumIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetServiceUpdated()
           
 void unsetUpdated()
           
 void unsetUpdateSequenceNum()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final java.util.Map<NoteVersionId._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

NoteVersionId

public NoteVersionId()

NoteVersionId

public NoteVersionId(int updateSequenceNum,
                     long updated,
                     long serviceUpdated)

NoteVersionId

public NoteVersionId(NoteVersionId other)
Performs a deep copy on other.

Method Detail

deepCopy

public NoteVersionId deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<NoteVersionId._Fields>

clone

@Deprecated
public NoteVersionId clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getUpdateSequenceNum

public int getUpdateSequenceNum()

setUpdateSequenceNum

public void setUpdateSequenceNum(int updateSequenceNum)

unsetUpdateSequenceNum

public void unsetUpdateSequenceNum()

isSetUpdateSequenceNum

public boolean isSetUpdateSequenceNum()
Returns true if field updateSequenceNum is set (has been asigned a value) and false otherwise


setUpdateSequenceNumIsSet

public void setUpdateSequenceNumIsSet(boolean value)

getUpdated

public long getUpdated()

setUpdated

public void setUpdated(long updated)

unsetUpdated

public void unsetUpdated()

isSetUpdated

public boolean isSetUpdated()
Returns true if field updated is set (has been asigned a value) and false otherwise


setUpdatedIsSet

public void setUpdatedIsSet(boolean value)

getServiceUpdated

public long getServiceUpdated()

setServiceUpdated

public void setServiceUpdated(long serviceUpdated)

unsetServiceUpdated

public void unsetServiceUpdated()

isSetServiceUpdated

public boolean isSetServiceUpdated()
Returns true if field serviceUpdated is set (has been asigned a value) and false otherwise


setServiceUpdatedIsSet

public void setServiceUpdatedIsSet(boolean value)

setFieldValue

public void setFieldValue(NoteVersionId._Fields field,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<NoteVersionId._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          java.lang.Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<NoteVersionId._Fields>

getFieldValue

public java.lang.Object getFieldValue(NoteVersionId._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<NoteVersionId._Fields>

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<NoteVersionId._Fields>

isSet

public boolean isSet(NoteVersionId._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<NoteVersionId._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<NoteVersionId._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(NoteVersionId that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(NoteVersionId other)
Specified by:
compareTo in interface java.lang.Comparable<NoteVersionId>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<NoteVersionId._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<NoteVersionId._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