Class Tuple2<V1,V2>
java.lang.Object
net.hl.lang.AbstractTuple
net.hl.lang.Tuple2<V1,V2>
- All Implemented Interfaces:
Tuple
-
Field Summary
FieldsFields inherited from interface Tuple
MAX_ELEMENTS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractTuple
checkRange, equals, hashCode, toString
-
Field Details
-
_1
-
_2
-
-
Constructor Details
-
Tuple2
-
-
Method Details
-
size
public int size() -
valueAt
public <T> T valueAt(int index) Description copied from interface:Tuplezero based index.Uplet2<String,Integer> u=new Uplet2<String,Integer>(String.class,Integer.class,"Hello",null); Integer i2=u._2; Integer i2=u.valueAt(1);- Type Parameters:
T- T- Parameters:
index- index- Returns:
- tuple value at index
-