Class Pair<T>
- java.lang.Object
-
- moa.clusterers.outliers.utils.mtree.utils.Pair<T>
-
- Type Parameters:
T
- The type of the objects.
public class Pair<T> extends Object
A pair of objects of the same type.
-
-
Method Detail
-
get
public T get(int index) throws IllegalArgumentException
- Parameters:
index
- The index of the object to be accessed.- Returns:
- The
first
object ifindex
is0
; thesecond
object ifindex
is1
. - Throws:
IllegalArgumentException
- Ifindex
is neither0
or1
.
-
-