edu.stanford.nlp.util
Class ArrayWrapper<E>
java.lang.Object
edu.stanford.nlp.util.ArrayWrapper<E>
public class ArrayWrapper<E>
- extends Object
Wraps an array. The only advantage of this class is that hashCode() hashes
the elements of the array.
- Author:
- Michel Galley
Method Summary |
boolean |
equals(Object o)
StringArrays are equal if they contain the same elements. |
int |
hashCode()
|
ArrayWrapper
public ArrayWrapper(E... arr)
equals
public boolean equals(Object o)
- StringArrays are equal if they contain the same elements.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Stanford NLP Group