com.sodius.mdw.core.model
Class DefaultMDWSet<E>

java.lang.Object
  extended by 
      extended by com.sodius.mdw.core.model.DefaultMDWSet<E>
All Implemented Interfaces:
MDWCollection<E>, MDWSet<E>, Iterable<E>, Collection<E>, Set<E>

public class DefaultMDWSet<E>
extends
implements MDWSet<E>

Default MDWSet implementation based on a HashSet.

Since:
MDWorkbench 3.0.0
See Also:
HashSet

Constructor Summary
DefaultMDWSet()
          Constructs an empty Set.
DefaultMDWSet(Collection<E> c)
          Constructs a Set containing the elements of the specified collection.
DefaultMDWSet(int initialCapacity)
          Constructs an empty Set with the specified initial capacity.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sodius.mdw.core.model.MDWSet
collect, collect, collect, concat, concat, concat, concat, concat, concat, copy, detect, detect, detect, getInstances, getInstances, getInstances, getInstances, getProfiledInstances, getProfiledInstances, getProfiledInstances, getProfiledInstances, reject, reject, reject, select, select, select, sort, sort, sort, toList
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

DefaultMDWSet

public DefaultMDWSet()
Constructs an empty Set.


DefaultMDWSet

public DefaultMDWSet(int initialCapacity)
Constructs an empty Set with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the Set.
Throws:
IllegalArgumentException - if the specified initial capacity is negative

DefaultMDWSet

public DefaultMDWSet(Collection<E> c)
Constructs a Set containing the elements of the specified collection.

Parameters:
c - the collection whose elements are to be placed into this Set.
Throws:
NullPointerException - if the specified collection is null.