![JAR search and dependency download from the Maven repository](/logo.png)
org.jhotdraw8.icollection.readonly.AbstractReadOnlySet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jhotdraw8.icollection Show documentation
Show all versions of org.jhotdraw8.icollection Show documentation
JHotDraw8 Immutable Collections
The newest version!
/*
* @(#)AbstractReadOnlySet.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.icollection.readonly;
/**
* Abstract base class for {@link ReadOnlySet}s.
*
* @param the element type
*/
public abstract class AbstractReadOnlySet extends AbstractReadOnlyCollection implements ReadOnlySet {
/**
* Constructs a new instance.
*/
public AbstractReadOnlySet() {
}
@Override
public boolean equals(Object o) {
return ReadOnlySet.setEquals(this, o);
}
@Override
public int hashCode() {
return ReadOnlySet.iteratorToHashCode(this.iterator());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy