Class OrderedObject<E>

java.lang.Object
com.opencsv.bean.util.OrderedObject<E>
Type Parameters:
E - Type of the element to be ordered

public class OrderedObject<E> extends Object
A simple class for ordering objects.
Since:
4.0
  • Field Details

    • ordinal

      private final long ordinal
    • element

      private final E element
  • Constructor Details

    • OrderedObject

      public OrderedObject(long ordinal, E element)
      Creates an object with an order.
      Parameters:
      ordinal - The position in a sequence of objects
      element - The object being sequenced
  • Method Details

    • getOrdinal

      public long getOrdinal()
      Returns:
      The position in a sequence of objects
    • getElement

      public E getElement()
      Returns:
      The object being sequenced