Package com.tangosol.util
Class ImmutableMultiList.SetView
- java.lang.Object
- 
- com.tangosol.util.WrapperCollections.AbstractWrapperCollection<E>
- 
- com.tangosol.util.WrapperCollections.AbstractWrapperSet
- 
- com.tangosol.util.ImmutableMultiList.SetView
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Iterable,- Collection,- Set
 - Enclosing class:
- ImmutableMultiList
 
 protected class ImmutableMultiList.SetView extends WrapperCollections.AbstractWrapperSet SetView exposes the underlying ImmutableMultiList through theSetinterface, maintaining correct equals() and hashCode() semantics- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollectionm_colDelegate
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSetView()Create a SetView over this ImmutableMultiList.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Compares the specified object with this set for equality.inthashCode()Returns the hash code value for this set.- 
Methods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperSetgetDelegate
 - 
Methods inherited from class com.tangosol.util.WrapperCollections.AbstractWrapperCollectionadd, addAll, clear, contains, containsAll, forEach, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
 
- 
 
- 
- 
- 
Method Detail- 
equalspublic boolean equals(Object o) Compares the specified object with this set for equality. Returns true if the specified object is also a set, the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set). This definition ensures that the equals method works properly across different implementations of the set interface.- Specified by:
- equalsin interface- Collection
- Specified by:
- equalsin interface- Set
- Overrides:
- equalsin class- WrapperCollections.AbstractWrapperCollection
- Parameters:
- o- Object to be compared for equality with this set.
- Returns:
- true if the specified Object is equal to this set.
 
 - 
hashCodepublic int hashCode() Returns the hash code value for this set. The hash code of a set is defined to be the sum of the hash codes of the elements in the set, where the hashcode of a null element is defined to be zero. This ensures thats1.equals(s2)implies thats1.hashCode()==s2.hashCode()for any two setss1ands2, as required by the general contract of the Object.hashCode method.- Specified by:
- hashCodein interface- Collection
- Specified by:
- hashCodein interface- Set
- Overrides:
- hashCodein class- WrapperCollections.AbstractWrapperCollection
- Returns:
- the hash code value for this set.
- See Also:
- Object.hashCode(),- Object.equals(Object),- Set.equals(Object)
 
 
- 
 
-