softparsmap
Class ChildSet

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bysoftparsmap.ChildSet
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable, java.util.Set

public class ChildSet
extends java.util.Vector
implements java.util.Set

This set is used as child set for gene trees and as well as for species trees. It is a simple set that uses limited resources.

See Also:
Serialized Form

Constructor Summary
ChildSet()
          Construct an empty child set.
ChildSet(int cap)
          Set the start capacity.
 
Method Summary
 boolean add(java.lang.Object o)
          Adding an object.
 
Methods inherited from class java.util.Vector
add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

ChildSet

public ChildSet()
Construct an empty child set.


ChildSet

public ChildSet(int cap)
Set the start capacity.

Parameters:
cap - is the start capacity.
Method Detail

add

public boolean add(java.lang.Object o)
Adding an object. A set can only contain one unique object.

Specified by:
add in interface java.util.Set
Parameters:
o - is the object that will be added if it does not already exists in the set.
Returns:
true if the set was altered