Package gnu.trove.impl.unmodifiable
Class TUnmodifiableDoubleSet
java.lang.Object
gnu.trove.impl.unmodifiable.TUnmodifiableDoubleCollection
gnu.trove.impl.unmodifiable.TUnmodifiableDoubleSet
- All Implemented Interfaces:
TDoubleSet
,TDoubleCollection
,Serializable
public class TUnmodifiableDoubleSet
extends TUnmodifiableDoubleCollection
implements TDoubleSet, Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gnu.trove.impl.unmodifiable.TUnmodifiableDoubleCollection
add, addAll, addAll, addAll, clear, contains, containsAll, containsAll, containsAll, forEach, getNoEntryValue, isEmpty, iterator, remove, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, size, toArray, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface gnu.trove.set.TDoubleSet
add, addAll, addAll, addAll, clear, contains, containsAll, containsAll, containsAll, forEach, getNoEntryValue, isEmpty, iterator, remove, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, size, toArray, toArray
-
Constructor Details
-
TUnmodifiableDoubleSet
-
-
Method Details
-
equals
Description copied from interface:TDoubleSet
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:
equals
in interfaceTDoubleCollection
- Specified by:
equals
in interfaceTDoubleSet
- Overrides:
equals
in classObject
- Parameters:
o
- object to be compared for equality with this set- Returns:
- true if the specified object is equal to this set
-
hashCode
public int hashCode()Description copied from interface:TDoubleSet
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. This ensures that s1.equals(s2) implies that s1.hashCode()==s2.hashCode() for any two sets s1 and s2, as required by the general contract ofObject.hashCode()
.- Specified by:
hashCode
in interfaceTDoubleCollection
- Specified by:
hashCode
in interfaceTDoubleSet
- Overrides:
hashCode
in classObject
- Returns:
- the hash code value for this set
- See Also:
-