org.ojalgo.optimisation
Class IndexSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.TreeSet<String>
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
| Methods inherited from class java.util.TreeSet |
clone, comparator, contains, first, headSet, isEmpty, iterator, last, remove, size, subSet, tailSet |
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)
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>