Package com.tangosol.util
Class SortedBag.UniqueElement<E>
- java.lang.Object
-
- com.tangosol.util.SortedBag.UniqueElement<E>
-
- All Implemented Interfaces:
Comparable
protected class SortedBag.UniqueElement<E> extends Object implements Comparable
UniqueElement represents a unique instance of a logical element in the bag.
-
-
Field Summary
Fields Modifier and Type Field Description protected E
f_elem
The "actual" element.protected long
f_nUniqueId
The unique "id" for this element.
-
Constructor Summary
Constructors Constructor Description UniqueElement(E elem)
Create a UniqueElement to represent the specified element.
-
-
-
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
-
-
Method Detail
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable<E>
-
-