S1 - The type of the element to be transformedS2 - The type of the elements to be transformed intopublic abstract class OrdinalTransformer<S1,S2>
extends java.lang.Object
| Constructor and Description |
|---|
OrdinalTransformer() |
| Modifier and Type | Method and Description |
|---|---|
abstract S2 |
transform(S1 from,
int ordinal)
Returns an object of class <S2> that is in some sense equivalent to the given from object
|
public abstract S2 transform(S1 from, int ordinal)
from - an object for which an equivalent object of another class is to be returnedordinal - The ordinal position that the 'from' object occupies in a collection it appears in, and which will be reflected somehow in the <S2> object state returned