Class SortedBag.UniqueElement<E>

  • All Implemented Interfaces:
    Comparable
    Enclosing class:
    SortedBag<E>

    protected class SortedBag.UniqueElement<E>
    extends Object
    implements Comparable
    UniqueElement represents a unique instance of a logical element in the bag.
    • Field Detail

      • f_nUniqueId

        protected final long f_nUniqueId
        The unique "id" for this element.
      • f_elem

        protected final E f_elem
        The "actual" element.
    • Constructor Detail

      • UniqueElement

        public UniqueElement​(E elem)
        Create a UniqueElement to represent the specified element.
        Parameters:
        elem - the element