Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.util
Class AbstractSet

java.lang.Object
  extended by oracle.adfnmc.java.util.AbstractCollection
      extended by oracle.adfnmc.java.util.AbstractSet
All Implemented Interfaces:
Iterable, Collection, Set
Direct Known Subclasses:
HashSet, TreeSet

public abstract class AbstractSet
extends AbstractCollection
implements Set

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 Summary
protected AbstractSet()
          Constructs a new instance of this AbstractSet.
 
Method Summary
 boolean equals(java.lang.Object object)
          Compares the specified object to this Set and answer if they are equal.
 int hashCode()
          Answers an integer hash code for the receiver.
 boolean removeAll(Collection collection)
          Removes all occurrences in this Collection of each object in the specified Collection.
 
Methods inherited from class oracle.adfnmc.java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface oracle.adfnmc.java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray
 

Constructor Detail

AbstractSet

protected AbstractSet()
Constructs a new instance of this AbstractSet.

Method Detail

equals

public boolean equals(java.lang.Object object)
Compares the specified object to this Set and answer if they are equal. The object must be an instance of Set and contain the same objects.

Specified by:
equals in interface Collection
Specified by:
equals in interface Set
Overrides:
equals in class java.lang.Object
Parameters:
object - the object to compare with this object
Returns:
true if the specified object is equal to this Set, false otherwise
See Also:
hashCode()

hashCode

public int hashCode()
Answers an integer hash code for the receiver. Objects which are equal answer the same value for this method.

Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface Set
Overrides:
hashCode in class java.lang.Object
Returns:
the receiver's hash
See Also:
equals(java.lang.Object)

removeAll

public boolean removeAll(Collection collection)
Removes all occurrences in this Collection of each object in the specified Collection.

Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface Set
Overrides:
removeAll in class AbstractCollection
Parameters:
collection - the Collection of objects to remove
Returns:
true if this Collection is modified, false otherwise
Throws:
java.lang.UnsupportedOperationException - when removing from this Collection is not supported

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.