Package com.opencsv.bean.util
Class OrderedObject<E>
java.lang.Object
com.opencsv.bean.util.OrderedObject<E>
- Type Parameters:
E
- Type of the element to be ordered
A simple class for ordering objects.
- Since:
- 4.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ordinal
private final long ordinal -
element
-
-
Constructor Details
-
OrderedObject
Creates an object with an order.- Parameters:
ordinal
- The position in a sequence of objectselement
- The object being sequenced
-
-
Method Details
-
getOrdinal
public long getOrdinal()- Returns:
- The position in a sequence of objects
-
getElement
- Returns:
- The object being sequenced
-