public final class ClassEntry extends java.lang.Object implements java.lang.Comparable<ClassEntry>, IDisplayable
Modifier and Type | Field and Description |
---|---|
static ContentType<ClassEntry> |
CLASS_ENTRY |
private IQuantity |
count |
private IMCType |
type |
AUTO, EXACT, VERBOSE
Constructor and Description |
---|
ClassEntry(IMCType type,
IQuantity count) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ClassEntry o) |
java.lang.String |
displayUsing(java.lang.String formatHint)
Format this object for display purposes, preferably using the formatter hinted by
formatHint . |
boolean |
equals(java.lang.Object obj) |
IQuantity |
getCount() |
IMCType |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public static final ContentType<ClassEntry> CLASS_ENTRY
private final IMCType type
private final IQuantity count
public int compareTo(ClassEntry o)
compareTo
in interface java.lang.Comparable<ClassEntry>
public java.lang.String toString()
toString
in class java.lang.Object
public IMCType getType()
public IQuantity getCount()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String displayUsing(java.lang.String formatHint)
IDisplayable
formatHint
. If no such formatter is defined for this type, the default formatter will
be used.displayUsing
in interface IDisplayable
formatHint
- the format hint