org.ojalgo.optimisation
Class IndexSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.TreeSet<String>
              extended by org.ojalgo.optimisation.IndexSet
All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, Set<String>, SortedSet<String>

public class IndexSet
extends TreeSet<String>

See Also:
Serialized Form

Constructor Summary
IndexSet(String aName)
           
IndexSet(String aName, Collection<String> aCollection)
           
IndexSet(String aName, Comparator<? super String> anC)
           
IndexSet(String aName, SortedSet<String> anS)
           
IndexSet(String aName, String[] someIndeces)
           
 
Method Summary
 boolean add(String aString)
           
 boolean addAll(Collection<? extends String> aCollection)
           
 void clear()
           
 String getName()
           
 boolean isLocked()
           
 void lock()
           
 boolean removeAll(Collection<?> aCollection)
           
 
Methods inherited from class java.util.TreeSet
clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet
 
Methods inherited from class java.util.AbstractSet
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
containsAll, equals, hashCode, retainAll, toArray, toArray
 

Constructor Detail

IndexSet

public IndexSet(String aName)

IndexSet

public IndexSet(String aName,
                Collection<String> aCollection)

IndexSet

public IndexSet(String aName,
                Comparator<? super String> anC)

IndexSet

public IndexSet(String aName,
                SortedSet<String> anS)

IndexSet

public IndexSet(String aName,
                String[] someIndeces)
Method Detail

add

public boolean add(String aString)
Specified by:
add in interface Collection<String>
Specified by:
add in interface Set<String>
Overrides:
add in class TreeSet<String>

addAll

public boolean addAll(Collection<? extends String> aCollection)
Specified by:
addAll in interface Collection<String>
Specified by:
addAll in interface Set<String>
Overrides:
addAll in class TreeSet<String>

clear

public void clear()
Specified by:
clear in interface Collection<String>
Specified by:
clear in interface Set<String>
Overrides:
clear in class TreeSet<String>

getName

public String getName()

isLocked

public boolean isLocked()

lock

public void lock()

removeAll

public boolean removeAll(Collection<?> aCollection)
Specified by:
removeAll in interface Collection<String>
Specified by:
removeAll in interface Set<String>
Overrides:
removeAll in class AbstractSet<String>