org.erights.e.elib.tables
Class FlexSet

java.lang.Object
  |
  +--org.erights.e.elib.tables.ESet
        |
        +--org.erights.e.elib.tables.FlexSet
All Implemented Interfaces:
EPrintable, Iteratable, Marker, PassByProxy, Persistent, Serializable

public class FlexSet
extends ESet
implements PassByProxy

Untamed:

See Also:
Serialized Form

Field Summary
(package private) static long serialVersionUID
           
 
Fields inherited from class org.erights.e.elib.tables.ESet
myMap
 
Fields inherited from interface org.erights.e.elib.serial.PassByProxy
HONORARY, HONORED_NAMES
 
Fields inherited from interface org.erights.e.elib.serial.Persistent
HONORARY, HONORED_NAMES
 
Constructor Summary
private FlexSet(FlexMap map)
           
 
Method Summary
 void __printOn(TextWriter out)
          Enabled: Prints as an E list send the message 'asSet() diverge()'
 void addAll(Iteratable other)
          Enabled: 'strict' defaults to false
 void addAll(Iteratable other, boolean strict)
          Enabled:
 void addElement(Object newElement)
          Enabled: 'strict' defaults to false
 void addElement(Object newElement, boolean strict)
          Enabled: Adds newElement to the set.
static FlexSet fromType(Class type)
          Enabled:
static FlexSet fromType(Class type, int capacity)
          Enabled:
private  FlexMap getMap()
           
static FlexSet make()
          Enabled:
(package private) static FlexSet make(FlexMap map)
           
static FlexSet makeWeak()
          Enabled: Note: A snapshot of a WeakSet makes no sense.
 void remove(Object element)
          Enabled: 'strict' defaults to false
 void remove(Object element, boolean strict)
          Enabled: Removes the element from the set.
 void removeAll(Iteratable other)
          Enabled: 'strict' defaults to false
 void removeAll(Iteratable other, boolean strict)
          Enabled:
static FlexSet weakFromType(Class type)
          Enabled: Note: A snapshot of a WeakSet makes no sense.
 
Methods inherited from class org.erights.e.elib.tables.ESet
and, butNot, contains, diverge, diverge, elementType, getElements, getElements, intersects, iterate, or, or, printOn, readOnly, size, snapshot, sort, sort, toString, with, without
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Constructor Detail

FlexSet

private FlexSet(FlexMap map)
Method Detail

make

public static FlexSet make()
Enabled:


make

static FlexSet make(FlexMap map)

fromType

public static FlexSet fromType(Class type)
Enabled:


fromType

public static FlexSet fromType(Class type,
                               int capacity)
Enabled:


makeWeak

public static FlexSet makeWeak()
Enabled: Note: A snapshot of a WeakSet makes no sense.


weakFromType

public static FlexSet weakFromType(Class type)
Enabled: Note: A snapshot of a WeakSet makes no sense.


getMap

private FlexMap getMap()

__printOn

public void __printOn(TextWriter out)
               throws IOException
Enabled: Prints as an E list send the message 'asSet() diverge()'

Specified by:
__printOn in interface EPrintable
IOException

addElement

public void addElement(Object newElement)
Enabled: 'strict' defaults to false


addElement

public void addElement(Object newElement,
                       boolean strict)
Enabled: Adds newElement to the set.

If it's already there, then if strict, throw an exception.


addAll

public void addAll(Iteratable other)
Enabled: 'strict' defaults to false


addAll

public void addAll(Iteratable other,
                   boolean strict)
Enabled:


remove

public void remove(Object element)
Enabled: 'strict' defaults to false


remove

public void remove(Object element,
                   boolean strict)
Enabled: Removes the element from the set.

If it isn't there to be removed, then if strict, throw an exception.


removeAll

public void removeAll(Iteratable other)
Enabled: 'strict' defaults to false


removeAll

public void removeAll(Iteratable other,
                      boolean strict)
Enabled:



comments?