Package software.kes.collectionviews
Class VectorHelpers
- java.lang.Object
-
- software.kes.collectionviews.VectorHelpers
-
public final class VectorHelpers extends java.lang.Object
Helper methods for implementers of customVector
s.If you are implementing a custom
Vector
, yourequals
andhashCode
methods SHOULD delegate tovectorEquals
andvectorHashCode
, respectively. This will ensure that equality works correctly with the built-inVector
types.Your
toString
method MAY delegate tovectorToString
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
vectorEquals(Vector<?> vector, Vector<?> other)
static int
vectorHashCode(Vector<?> vector)
static <A> java.util.Iterator<A>
vectorIterator(Vector<A> vector)
static java.lang.String
vectorToString(Vector<?> vector)
-