com.evernote.edam.notestore
Class NoteCollectionCounts

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

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

A data structure representing the number of notes for each notebook and tag with a non-zero set of applicable notes.

notebookCounts
A mapping from the Notebook GUID to the number of notes (from some selection) that are in the corresponding notebook.
tagCounts
A mapping from the Tag GUID to the number of notes (from some selection) that have the corresponding tag.
trashCount
If this is set, then this is the number of notes that are in the trash. If this is not set, then the number of notes in the trash hasn't been reported. (I.e. if there are no notes in the trash, this will be set to 0.)

See Also:
Serialized Form

Constructor Summary
NoteCollectionCounts()
           
NoteCollectionCounts(NoteCollectionCounts 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(NoteCollectionCounts other)
           
 NoteCollectionCounts deepCopy()
          Creates a deep copy of the object.
 boolean equals(NoteCollectionCounts that)
           
 boolean equals(java.lang.Object that)
           
 java.util.Map<java.lang.String,java.lang.Integer> getNotebookCounts()
           
 int getNotebookCountsSize()
           
 java.util.Map<java.lang.String,java.lang.Integer> getTagCounts()
           
 int getTagCountsSize()
           
 int getTrashCount()
           
 int hashCode()
           
 boolean isSetNotebookCounts()
          Returns true if field notebookCounts is set (has been asigned a value) and false otherwise
 boolean isSetTagCounts()
          Returns true if field tagCounts is set (has been asigned a value) and false otherwise
 boolean isSetTrashCount()
          Returns true if field trashCount is set (has been asigned a value) and false otherwise
 void putToNotebookCounts(java.lang.String key, int val)
           
 void putToTagCounts(java.lang.String key, int val)
           
 void read(com.evernote.thrift.protocol.TProtocol iprot)
          Reads an instance of the object from the given protocol.
 void setNotebookCounts(java.util.Map<java.lang.String,java.lang.Integer> notebookCounts)
           
 void setNotebookCountsIsSet(boolean value)
           
 void setTagCounts(java.util.Map<java.lang.String,java.lang.Integer> tagCounts)
           
 void setTagCountsIsSet(boolean value)
           
 void setTrashCount(int trashCount)
           
 void setTrashCountIsSet(boolean value)
           
 java.lang.String toString()
           
 void unsetNotebookCounts()
           
 void unsetTagCounts()
           
 void unsetTrashCount()
           
 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

NoteCollectionCounts

public NoteCollectionCounts()

NoteCollectionCounts

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

Method Detail

deepCopy

public NoteCollectionCounts 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<NoteCollectionCounts>

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<NoteCollectionCounts>

getNotebookCountsSize

public int getNotebookCountsSize()

putToNotebookCounts

public void putToNotebookCounts(java.lang.String key,
                                int val)

getNotebookCounts

public java.util.Map<java.lang.String,java.lang.Integer> getNotebookCounts()

setNotebookCounts

public void setNotebookCounts(java.util.Map<java.lang.String,java.lang.Integer> notebookCounts)

unsetNotebookCounts

public void unsetNotebookCounts()

isSetNotebookCounts

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


setNotebookCountsIsSet

public void setNotebookCountsIsSet(boolean value)

getTagCountsSize

public int getTagCountsSize()

putToTagCounts

public void putToTagCounts(java.lang.String key,
                           int val)

getTagCounts

public java.util.Map<java.lang.String,java.lang.Integer> getTagCounts()

setTagCounts

public void setTagCounts(java.util.Map<java.lang.String,java.lang.Integer> tagCounts)

unsetTagCounts

public void unsetTagCounts()

isSetTagCounts

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


setTagCountsIsSet

public void setTagCountsIsSet(boolean value)

getTrashCount

public int getTrashCount()

setTrashCount

public void setTrashCount(int trashCount)

unsetTrashCount

public void unsetTrashCount()

isSetTrashCount

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


setTrashCountIsSet

public void setTrashCountIsSet(boolean value)

equals

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

equals

public boolean equals(NoteCollectionCounts that)

hashCode

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

compareTo

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

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<NoteCollectionCounts>
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<NoteCollectionCounts>
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