Fast Object Database for Java - with JPA/JDO support

get(i, type) - JPA Tuple's method

Method
javax.persistence.Tuple
X get(
  int i,
  Class<X> type
)

Get the value of the element at the specified position in the result tuple. The first position is 0.
Parameters:
i - position in result tuple
type - type of the tuple element
Returns:
value of the tuple element
Throws:
IllegalArgumentException - if i exceeds length of result tuple or element cannot be assigned to the specified type
Since:
JPA 2.0