gnu.trove.impl.sync
Class TSynchronizedIntSet
- java.lang.Object
-
- gnu.trove.impl.sync.TSynchronizedIntCollection
-
- gnu.trove.impl.sync.TSynchronizedIntSet
-
- All Implemented Interfaces:
- TIntSet, TIntCollection, java.io.Serializable
public class TSynchronizedIntSet extends TSynchronizedIntCollection implements TIntSet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description TSynchronizedIntSet(TIntSet s)TSynchronizedIntSet(TIntSet s, java.lang.Object mutex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object o)Compares the specified object with this set for equality.inthashCode()Returns the hash code value for this set.-
Methods inherited from class gnu.trove.impl.sync.TSynchronizedIntCollection
add, addAll, addAll, addAll, clear, contains, containsAll, containsAll, containsAll, forEach, getNoEntryValue, isEmpty, iterator, remove, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, size, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
TSynchronizedIntSet
public TSynchronizedIntSet(TIntSet s)
-
TSynchronizedIntSet
public TSynchronizedIntSet(TIntSet s, java.lang.Object mutex)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:TIntSetCompares 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 interfaceTIntSet- Specified by:
equalsin interfaceTIntCollection- Overrides:
equalsin classjava.lang.Object- 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:TIntSetReturns 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:
hashCodein interfaceTIntSet- Specified by:
hashCodein interfaceTIntCollection- Overrides:
hashCodein classjava.lang.Object- Returns:
- the hash code value for this set
- See Also:
Object.equals(Object),Set.equals(Object)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG