Package org.opt4j.config.visualization
Class SelectedModules
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.TreeSet<PropertyModule>
-
- org.opt4j.config.visualization.SelectedModules
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PropertyModule>
,Collection<PropertyModule>
,NavigableSet<PropertyModule>
,Set<PropertyModule>
,SortedSet<PropertyModule>
public class SelectedModules extends TreeSet<PropertyModule>
TheSelectedModules
. A set of all selected modules that is extended by a listener functionality.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<SetListener>
listeners
-
Constructor Summary
Constructors Constructor Description SelectedModules()
Constructs a new, emptySelectedModules
set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(PropertyModule module)
boolean
addAll(Collection<? extends PropertyModule> modules)
void
addListener(SetListener listener)
Adds aSetListener
.void
clear()
boolean
remove(Object o)
void
removeListener(SetListener listener)
Removes aSetListener
.-
Methods inherited from class java.util.TreeSet
ceiling, clone, comparator, contains, descendingIterator, descendingSet, first, floor, headSet, headSet, higher, isEmpty, iterator, last, lower, pollFirst, pollLast, size, spliterator, subSet, subSet, tailSet, tailSet
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Field Detail
-
listeners
protected Set<SetListener> listeners
-
-
Constructor Detail
-
SelectedModules
public SelectedModules()
Constructs a new, emptySelectedModules
set.
-
-
Method Detail
-
add
public boolean add(PropertyModule module)
- Specified by:
add
in interfaceCollection<PropertyModule>
- Specified by:
add
in interfaceSet<PropertyModule>
- Overrides:
add
in classTreeSet<PropertyModule>
-
addAll
public boolean addAll(Collection<? extends PropertyModule> modules)
- Specified by:
addAll
in interfaceCollection<PropertyModule>
- Specified by:
addAll
in interfaceSet<PropertyModule>
- Overrides:
addAll
in classTreeSet<PropertyModule>
-
remove
public boolean remove(Object o)
- Specified by:
remove
in interfaceCollection<PropertyModule>
- Specified by:
remove
in interfaceSet<PropertyModule>
- Overrides:
remove
in classTreeSet<PropertyModule>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<PropertyModule>
- Specified by:
clear
in interfaceSet<PropertyModule>
- Overrides:
clear
in classTreeSet<PropertyModule>
-
addListener
public void addListener(SetListener listener)
Adds aSetListener
.- Parameters:
listener
- the listener to be added- See Also:
removeListener(org.opt4j.config.visualization.SetListener)
-
removeListener
public void removeListener(SetListener listener)
Removes aSetListener
.- Parameters:
listener
- the listener to be removed- See Also:
addListener(org.opt4j.config.visualization.SetListener)
-
-