protected class ImmutableMultiList.SetView
extends com.oracle.common.collections.WrapperCollections.AbstractWrapperSet
Set interface, maintaining correct equals() and hashCode() semantics| Modifier | Constructor and Description |
|---|---|
protected |
SetView()
Create a SetView over this ImmutableMultiList.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Compares the specified object with this set for equality.
|
int |
hashCode()
Returns the hash code value for this set.
|
getDelegateadd, addAll, clear, contains, containsAll, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streampublic boolean equals(Object o)
equals in interface Collectionequals in interface Setequals in class com.oracle.common.collections.WrapperCollections.AbstractWrapperCollectiono - Object to be compared for equality with this set.public int hashCode()
s1.equals(s2) implies that s1.hashCode()==s2.hashCode() for any two sets s1 and s2, as required by the general contract of the Object.hashCode method.hashCode in interface CollectionhashCode in interface SethashCode in class com.oracle.common.collections.WrapperCollections.AbstractWrapperCollectionObject.hashCode(), Object.equals(Object), Set.equals(Object)