DthingApi
Public Member Functions | Protected Member Functions | List of all members
java.util.AbstractSet< E > Class Template Referenceabstract
Inheritance diagram for java.util.AbstractSet< E >:
java.util.AbstractCollection< E > java.util.Set< E > java.util.Collection< E > java.util.Collection< E > java.util.HashSet< E >

Public Member Functions

boolean equals (Object object)
 
int hashCode ()
 
boolean removeAll (Collection<?> collection)
 
- Public Member Functions inherited from java.util.AbstractCollection< E >
boolean add (E object)
 
boolean addAll (Collection<? extends E > collection)
 
void clear ()
 
boolean contains (Object object)
 
boolean containsAll (Collection<?> collection)
 
boolean isEmpty ()
 
abstract Iterator< E > iterator ()
 
boolean remove (Object object)
 
boolean removeAll (Collection<?> collection)
 
boolean retainAll (Collection<?> collection)
 
abstract int size ()
 
Object [] toArray ()
 
String toString ()
 
- Public Member Functions inherited from java.util.Set< E >
boolean add (E object)
 
boolean addAll (Collection<? extends E > collection)
 
void clear ()
 
boolean contains (Object object)
 
boolean containsAll (Collection<?> collection)
 
boolean isEmpty ()
 
Iterator< E > iterator ()
 
boolean remove (Object object)
 
boolean retainAll (Collection<?> collection)
 
int size ()
 
Object [] toArray ()
 

Protected Member Functions

 AbstractSet ()
 
- Protected Member Functions inherited from java.util.AbstractCollection< E >
 AbstractCollection ()
 

Detailed Description

An AbstractSet is an abstract implementation of the Set interface. This implementation does not support adding. A subclass must implement the abstract methods iterator() and size().

Since
1.2

Constructor & Destructor Documentation

◆ AbstractSet()

java.util.AbstractSet< E >.AbstractSet ( )
inlineprotected

Constructs a new instance of this AbstractSet.

Member Function Documentation

◆ equals()

boolean java.util.AbstractSet< E >.equals ( Object  object)
inline

Compares the specified object to this Set and returns true if they are equal. The object must be an instance of Set and contain the same objects.

Parameters
objectthe object to compare with this set.
Returns
true
if the specified object is equal to this set,
false
otherwise
See also
hashCode

Implements java.util.Set< E >.

◆ hashCode()

int java.util.AbstractSet< E >.hashCode ( )
inline

Returns the hash code for this set. Two set which are equal must return the same value. This implementation calculates the hash code by adding each element's hash code.

Returns
the hash code of this set.
See also
equals

Implements java.util.Set< E >.

◆ removeAll()

boolean java.util.AbstractSet< E >.removeAll ( Collection<?>  collection)
inline

Removes all occurrences in this collection which are contained in the specified collection.

Parameters
collectionthe collection of objects to remove.
Returns
true
if this collection was modified,
false
otherwise.
Exceptions
UnsupportedOperationExceptionif removing from this collection is not supported.

Implements java.util.Set< E >.


The documentation for this class was generated from the following file: