NSMutableSet< E > Class Reference

Inherits com::webobjects::foundation::NSSet< E >.

Collaboration diagram for NSMutableSet< E >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean add (E o)
boolean addAll (Collection<?extends E > c)
void addObject (E object)
void addObjectsFromArray (NSArray<?extends E > array)
void clear ()
Object clone ()
NSSet< E > immutableClone ()
void intersectSet (NSSet<?> otherSet)
NSMutableSet< E > mutableClone ()
 NSMutableSet (Set<?extends E > set, boolean ignoreNull)
 NSMutableSet (NSSet<?extends E > otherSet)
 NSMutableSet (NSArray<?extends E > objects)
 NSMutableSet (E object, E...objects)
 NSMutableSet (E[] objects)
 NSMutableSet (E object)
 NSMutableSet (Collection<?extends E > collection)
 NSMutableSet (int capacity)
 NSMutableSet ()
boolean remove (Object o)
boolean removeAll (Collection<?> c)
void removeAllObjects ()
removeObject (Object object)
boolean retainAll (Collection<?> c)
void setSet (NSSet<?extends E > otherSet)
void subtractSet (NSSet<?> otherSet)
void unionSet (NSSet<?extends E > otherSet)

Static Public Attributes

static final Class _CLASS = _NSUtilities._classWithFullySpecifiedName("com.webobjects.foundation.NSMutableSet")

Static Package Attributes

static final long serialVersionUID = -6054074706096120227L


Detailed Description

NSSet reimplementation to support JDK 1.5 templates. Use with

 NSMutableSet<T> set = new NSMutableSet<T>();
 set.put(new T())

 for (T t : set)
     logger.debug(t);
 

Parameters:
&lt;T&gt; type of set contents

Constructor & Destructor Documentation

NSMutableSet (  ) 

NSMutableSet ( int  capacity  ) 

NSMutableSet ( Collection<?extends E >  collection  ) 

NSMutableSet ( object  ) 

NSMutableSet ( E[]  objects  ) 

NSMutableSet ( object,
E...  objects 
)

NSMutableSet ( NSArray<?extends E >  objects  ) 

NSMutableSet ( NSSet<?extends E >  otherSet  ) 

NSMutableSet ( Set<?extends E >  set,
boolean  ignoreNull 
)


Member Function Documentation

boolean add ( o  ) 

Add o to the set and return true if o is not null and the set does not already contain o. Null elements are not permitted.

Parameters:
o element to add to this set
Returns:
true if o is not null and the set did not already contain o
Exceptions:
IllegalArgumentException if o is null

Reimplemented from NSSet< E >.

boolean addAll ( Collection<?extends E >  c  ) 

Add elements in c one by one and return true. Existing elements are not overwritten. Null elements are not permitted.

Parameters:
c collection of elements to add to this set.
Returns:
true if this set was modified; false otherwise.

Reimplemented from NSSet< E >.

void addObject ( object  ) 

void addObjectsFromArray ( NSArray<?extends E >  array  ) 

void clear (  ) 

Remove all of the elements from this set.

See also:
com.webobjects.foundation.NSMutableSet.removeAllObjects()

Reimplemented from NSSet< E >.

Object clone (  ) 

Reimplemented from NSSet< E >.

NSSet<E> immutableClone (  ) 

Reimplemented from NSSet< E >.

void intersectSet ( NSSet<?>  otherSet  ) 

NSMutableSet<E> mutableClone (  ) 

Reimplemented from NSSet< E >.

boolean remove ( Object  o  ) 

If the set contains o, remove it and returns true.

Parameters:
o element to remove from this set.
Returns:
true if the set contained o

Reimplemented from NSSet< E >.

boolean removeAll ( Collection<?>  c  ) 

Remove from this set all of its elements that are contained in c.

See also:
com.webobjects.foundation.NSMutableSet.subtractSet(NSSet)
Parameters:
c items to remove from this set
Returns:
true if this set was modified; false otherwise.

Reimplemented from NSSet< E >.

void removeAllObjects (  ) 

E removeObject ( Object  object  ) 

boolean retainAll ( Collection<?>  c  ) 

Retain only the elements in this set that are contained in c.

See also:
com.webobjects.foundation.NSMutableSet.intersectSet(NSSet)
Parameters:
c items to retain in this set
Returns:
true if this set was modified; false otherwise.

Reimplemented from NSSet< E >.

void setSet ( NSSet<?extends E >  otherSet  ) 

void subtractSet ( NSSet<?>  otherSet  ) 

void unionSet ( NSSet<?extends E >  otherSet  ) 


Member Data Documentation

final Class _CLASS = _NSUtilities._classWithFullySpecifiedName("com.webobjects.foundation.NSMutableSet") [static]

Reimplemented from NSSet< E >.

final long serialVersionUID = -6054074706096120227L [static, package]

Reimplemented from NSSet< E >.


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

Generated on Sat May 26 06:42:32 2012 for Project Wonder by  doxygen 1.5.8