Package edu.uky.ai.util
Class Tuple
java.lang.Object
edu.uky.ai.util.Tuple
public class Tuple
extends java.lang.Object
A tuple is simply an array of
Object
s implemented such that two
tuples are the same (i.e. Object#equals(Object)
) if their
arrays contain values which are equal. Tuples can, for example, be use as
multi-valued keys to HashMap
s.- Author:
- Stephen G. Ware
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object[]
elements
The array of objects in the tuple -
Constructor Summary
-
Method Summary
-
Field Details
-
elements
public final java.lang.Object[] elementsThe array of objects in the tuple
-
-
Constructor Details
-
Method Details