net.rim.device.api.collection
Interface WritableSet

All Superinterfaces:
Collection

public interface WritableSet
extends Collection

Provides write access to a set-type collection.


Method Summary
 void add(Object element)
          Adds an element to this set.
 boolean contains(Object element)
          Determines if this set contains an element.
 void remove(Object element)
          Removes an element from this set.
 void removeAll()
          Removes all elements from this set.
 

Method Detail

add

public void add(Object element)
Adds an element to this set.

Parameters:
element - Element to add.
Since:
JDE 4.0.2

contains

public boolean contains(Object element)
Determines if this set contains an element.

Parameters:
element - Element to look for.
Returns:
True if this set contains your element; otherwise, false.
Since:
JDE 4.0.2

remove

public void remove(Object element)
Removes an element from this set.

Parameters:
element - Element to remove.
Since:
JDE 4.0.2

removeAll

public void removeAll()
Removes all elements from this set.



Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.