Package org.aksw.commons.util.range
Class CountInfo
java.lang.Object
org.aksw.commons.util.range.CountInfo
- All Implemented Interfaces:
Serializable,Comparable<CountInfo>
A class that captures a (possibly minimum) count of items.
Features a flag whether more items are known and a property for
the limit that was used to compute the count.
- Author:
- raven
- See Also:
-
Constructor Details
-
CountInfo
-
-
Method Details
-
getCount
public long getCount() -
isHasMoreItems
public boolean isHasMoreItems() -
getItemLimit
public long getItemLimit() -
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
All exact counts are sorted first. Item limit is not used in comparison.- Specified by:
compareToin interfaceComparable<CountInfo>
-