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

public class NoteVersionId
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

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.)
saved
A timestamp that holds the date and time when this version of the note was backed up by Evernote's servers. This
title
The title of the note when this particular verison was saved. (The current title of the note may differ from this value.)

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,FieldMetaData> metaDataMap
           
 
Constructor Summary
NoteVersionId()
           
NoteVersionId(int updateSequenceNum, long updated, long saved, java.lang.String title)
           
NoteVersionId(NoteVersionId other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(NoteVersionId other)
           
 NoteVersionId deepCopy()
           
 boolean equals(NoteVersionId that)
           
 boolean equals(java.lang.Object that)
           
 NoteVersionId._Fields fieldForId(int fieldId)
           
 java.lang.Object getFieldValue(NoteVersionId._Fields field)
           
 long getSaved()
           
 java.lang.String getTitle()
           
 long getUpdated()
           
 int getUpdateSequenceNum()
           
 int hashCode()
           
 boolean isSet(NoteVersionId._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetSaved()
          Returns true if field saved is set (has been asigned a value) and false otherwise
 boolean isSetTitle()
          Returns true if field title 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(TProtocol iprot)
           
 void setFieldValue(NoteVersionId._Fields field, java.lang.Object value)
           
 void setSaved(long saved)
           
 void setSavedIsSet(boolean value)
           
 void setTitle(java.lang.String title)
           
 void setTitleIsSet(boolean value)
           
 void setUpdated(long updated)
           
 void setUpdatedIsSet(boolean value)
           
 void setUpdateSequenceNum(int updateSequenceNum)
           
 void setUpdateSequenceNumIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetSaved()
           
 void unsetTitle()
           
 void unsetUpdated()
           
 void unsetUpdateSequenceNum()
           
 void validate()
           
 void write(TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

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

NoteVersionId

public NoteVersionId()

NoteVersionId

public NoteVersionId(int updateSequenceNum,
                     long updated,
                     long saved,
                     java.lang.String title)

NoteVersionId

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

Method Detail

deepCopy

public NoteVersionId deepCopy()

clear

public void clear()

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)

getSaved

public long getSaved()

setSaved

public void setSaved(long saved)

unsetSaved

public void unsetSaved()

isSetSaved

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


setSavedIsSet

public void setSavedIsSet(boolean value)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

unsetTitle

public void unsetTitle()

isSetTitle

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


setTitleIsSet

public void setTitleIsSet(boolean value)

setFieldValue

public void setFieldValue(NoteVersionId._Fields field,
                          java.lang.Object value)

getFieldValue

public java.lang.Object getFieldValue(NoteVersionId._Fields field)

isSet

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


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)

fieldForId

public NoteVersionId._Fields fieldForId(int fieldId)

read

public void read(TProtocol iprot)
          throws TException
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Throws:
TException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws TException
Throws:
TException