Class 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 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 interface java.lang.Comparable<T>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object