Package org.aksw.commons.util.range
Class CountInfo
- java.lang.Object
-
- org.aksw.commons.util.range.CountInfo
-
- All Implemented Interfaces:
Serializable,Comparable<CountInfo>
public class CountInfo extends Object implements Comparable<CountInfo>, Serializable
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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CountInfo o)All exact counts are sorted first.booleanequals(Object obj)longgetCount()longgetItemLimit()inthashCode()booleanisHasMoreItems()StringtoString()
-
-
-
Constructor Detail
-
CountInfo
public CountInfo(long count, boolean hasMoreItems, Long itemLimit)
-
-
Method Detail
-
getCount
public long getCount()
-
isHasMoreItems
public boolean isHasMoreItems()
-
getItemLimit
public long getItemLimit()
-
compareTo
public int compareTo(CountInfo o)
All exact counts are sorted first. Item limit is not used in comparison.- Specified by:
compareToin interfaceComparable<CountInfo>
-
-