com.evernote.edam.notestore
Class NoteVersionId

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

public class NoteVersionId
extends java.lang.Object
implements com.evernote.thrift.TBase<NoteVersionId>, java.io.Serializable, java.lang.Cloneable

Identifying 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 version was saved. (The current title of the note may differ from this value.)

See Also:
Serialized Form

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()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(NoteVersionId other)
           
 NoteVersionId deepCopy()
          Creates a deep copy of the object.
 boolean equals(NoteVersionId that)
           
 boolean equals(java.lang.Object that)
           
 long getSaved()
           
 java.lang.String getTitle()
           
 long getUpdated()
           
 int getUpdateSequenceNum()
           
 int hashCode()
           
 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(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 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(com.evernote.thrift.protocol.TProtocol oprot)
          Writes the object to the given protocol.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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()
Description copied from interface: com.evernote.thrift.TBase
Creates a deep copy of the object.

Specified by:
deepCopy in interface com.evernote.thrift.TBase<NoteVersionId>

clear

public void clear()
Description copied from interface: com.evernote.thrift.TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface com.evernote.thrift.TBase<NoteVersionId>

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)

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(com.evernote.thrift.protocol.TProtocol iprot)
          throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Reads an instance of the object from the given protocol.

Specified by:
read in interface com.evernote.thrift.TBase<NoteVersionId>
Parameters:
iprot - Input protocol
Throws:
com.evernote.thrift.TException

write

public void write(com.evernote.thrift.protocol.TProtocol oprot)
           throws com.evernote.thrift.TException
Description copied from interface: com.evernote.thrift.TBase
Writes the object to the given protocol.

Specified by:
write in interface com.evernote.thrift.TBase<NoteVersionId>
Parameters:
oprot - Output protocol
Throws:
com.evernote.thrift.TException

toString

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

validate

public void validate()
              throws com.evernote.thrift.TException
Throws:
com.evernote.thrift.TException