omnics
Class VarSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Var>
              extended by omnics.VarSet
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Var>, java.util.Collection<Var>, java.util.List<Var>, java.util.RandomAccess

public class VarSet
extends java.util.ArrayList<Var>
implements java.io.Serializable

Represents a set of variables.

Author:
Cristian Frasinaru
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
VarSet()
          Creates a new instance of VarSet
VarSet(java.util.Collection<Var> variables)
          Creates a new instance of VarSet
VarSet(Var... variables)
          Creates a new instance of VarSet
VarSet(VarSet variables)
          Creates a new instance of VarSet
 
Method Summary
 boolean add(Var var)
           
 Var first()
          Returns the first element of the set.
 Var last()
          Returns the lasr element of the set.
 Var[] toArray()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

VarSet

public VarSet()
Creates a new instance of VarSet


VarSet

public VarSet(VarSet variables)
Creates a new instance of VarSet


VarSet

public VarSet(java.util.Collection<Var> variables)
Creates a new instance of VarSet


VarSet

public VarSet(Var... variables)
Creates a new instance of VarSet

Method Detail

first

public Var first()
Returns the first element of the set.


last

public Var last()
Returns the lasr element of the set.


toArray

public Var[] toArray()
Specified by:
toArray in interface java.util.Collection<Var>
Specified by:
toArray in interface java.util.List<Var>
Overrides:
toArray in class java.util.ArrayList<Var>

add

public boolean add(Var var)
Specified by:
add in interface java.util.Collection<Var>
Specified by:
add in interface java.util.List<Var>
Overrides:
add in class java.util.ArrayList<Var>