dev.marksman.collectionviews.ConcreteSet 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 ConcreteSet implements Set {
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (!(o instanceof Set>)) {
return false;
}
return SetHelpers.setEquals(this, (Set>) o);
}
@Override
public int hashCode() {
return SetHelpers.setHashCode(this);
}
@Override
public String toString() {
return SetHelpers.setToString(this);
}
}