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:
  • Constructor Details

    • CountInfo

      public CountInfo(long count, boolean hasMoreItems, Long itemLimit)
  • Method Details

    • getCount

      public long getCount()
    • isHasMoreItems

      public boolean isHasMoreItems()
    • getItemLimit

      public long getItemLimit()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(CountInfo o)
      All exact counts are sorted first. Item limit is not used in comparison.
      Specified by:
      compareTo in interface Comparable<CountInfo>