Package org.opennms.netmgt.dao.api
Class CountedObject<T>
- java.lang.Object
-
- org.opennms.netmgt.dao.api.CountedObject<T>
-
- All Implemented Interfaces:
java.lang.Comparable<CountedObject<T>>
public class CountedObject<T> extends java.lang.Object implements java.lang.Comparable<CountedObject<T>>
-
-
Constructor Summary
Constructors Constructor Description CountedObject()
CountedObject(T object, java.lang.Long count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CountedObject<T> o)
java.lang.Long
getCount()
T
getObject()
void
setCount(int count)
void
setObject(T object)
java.lang.String
toString()
-
-
-
Constructor Detail
-
CountedObject
public CountedObject()
-
CountedObject
public CountedObject(T object, java.lang.Long count)
-
-
Method Detail
-
setObject
public void setObject(T object)
-
getObject
public T getObject()
-
setCount
public void setCount(int count)
-
getCount
public java.lang.Long getCount()
-
compareTo
public int compareTo(CountedObject<T> o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-