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, org.apache.thrift.TBase<NoteCollectionCounts._Fields>

public class NoteCollectionCounts
extends java.lang.Object
implements org.apache.thrift.TBase<NoteCollectionCounts._Fields>, 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,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
NoteCollectionCounts()
           
NoteCollectionCounts(NoteCollectionCounts other)
          Performs a deep copy on other.
 
Method Summary
 NoteCollectionCounts clone()
          Deprecated. 
 NoteCollectionCounts deepCopy()
           
 boolean equals(NoteCollectionCounts that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.Object getFieldValue(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(int fieldID)
           
 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(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 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(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<NoteCollectionCounts._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

NoteCollectionCounts

public NoteCollectionCounts()

NoteCollectionCounts

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

Method Detail

deepCopy

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

clone

@Deprecated
public NoteCollectionCounts clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

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)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<NoteCollectionCounts._Fields>

setFieldValue

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

getFieldValue

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

getFieldValue

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

isSet

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

isSet

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

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

read

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