com.evernote.edam.notestore
Class NoteCollectionCounts

java.lang.Object
  extended by com.evernote.edam.notestore.NoteCollectionCounts
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class NoteCollectionCounts
extends java.lang.Object
implements 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

Nested Class Summary
static class NoteCollectionCounts._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
static java.util.Map<NoteCollectionCounts._Fields,FieldMetaData> metaDataMap
           
 
Constructor Summary
NoteCollectionCounts()
           
NoteCollectionCounts(NoteCollectionCounts other)
          Performs a deep copy on other.
 
Method Summary
 void clear()
           
 int compareTo(NoteCollectionCounts other)
           
 NoteCollectionCounts deepCopy()
           
 boolean equals(NoteCollectionCounts that)
           
 boolean equals(java.lang.Object that)
           
 NoteCollectionCounts._Fields fieldForId(int fieldId)
           
 java.lang.Object getFieldValue(NoteCollectionCounts._Fields field)
           
 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 isSet(NoteCollectionCounts._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 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(TProtocol iprot)
           
 void setFieldValue(NoteCollectionCounts._Fields field, java.lang.Object value)
           
 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(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<NoteCollectionCounts._Fields,FieldMetaData> metaDataMap
Constructor Detail

NoteCollectionCounts

public NoteCollectionCounts()

NoteCollectionCounts

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

Method Detail

deepCopy

public NoteCollectionCounts deepCopy()

clear

public void clear()

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)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(NoteCollectionCounts._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(NoteCollectionCounts that)

hashCode

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

compareTo

public int compareTo(NoteCollectionCounts other)

fieldForId

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