Top Description Fields Constructors Methods
com.opencsv.bean.util

public Class OrderedObject<E>

extends Object
Class Inheritance
Type Parameters
<E>
Type of the element to be ordered

A simple class for ordering objects.
Author
Andrew Rucker Jones
Since
4.0

Field Summary

Modifier and TypeField and Description
private final E
private final long

Constructor Summary

AccessConstructor and Description
public
OrderedObject(long
The position in a sequence of objects
ordinal
,
E
The object being sequenced
element
)

Creates an object with an order.

Method Summary

Modifier and TypeMethod and Description
public E
getElement()

Returns: The object being sequenced

public long
getOrdinal()

Returns: The position in a sequence of objects

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

elementback to summary
private final E element
ordinalback to summary
private final long ordinal

Constructor Detail

OrderedObjectback to summary
public OrderedObject(long ordinal, E element)

Creates an object with an order.

Parameters
ordinal:long

The position in a sequence of objects

element:E

The object being sequenced

Method Detail

getElementback to summary
public E getElement()
Returns:E

The object being sequenced

getOrdinalback to summary
public long getOrdinal()
Returns:long

The position in a sequence of objects