dev.marksman.collectionviews.ConcreteVector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of collection-views Show documentation
Show all versions of collection-views Show documentation
Low overhead, protected views over Java collections
package dev.marksman.collectionviews;
abstract class ConcreteVector implements Vector {
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof Vector>)) {
return false;
}
return VectorHelpers.vectorEquals(this, (Vector>) o);
}
@Override
public int hashCode() {
return VectorHelpers.vectorHashCode(this);
}
@Override
public String toString() {
return VectorHelpers.vectorToString(this);
}
}