Package org.opt4j.config.visualization
Class SelectedModules
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<PropertyModule>
,Collection<PropertyModule>
,NavigableSet<PropertyModule>
,Set<PropertyModule>
,SortedSet<PropertyModule>
The
SelectedModules
. A set of all selected modules that is extended
by a listener functionality.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
add
(PropertyModule module) boolean
addAll
(Collection<? extends PropertyModule> modules) void
addListener
(SetListener listener) Adds aSetListener
.void
clear()
boolean
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 Details
-
listeners
-
-
Constructor Details
-
SelectedModules
public SelectedModules()Constructs a new, emptySelectedModules
set.
-
-
Method Details
-
add
- Specified by:
add
in interfaceCollection<PropertyModule>
- Specified by:
add
in interfaceSet<PropertyModule>
- Overrides:
add
in classTreeSet<PropertyModule>
-
addAll
- Specified by:
addAll
in interfaceCollection<PropertyModule>
- Specified by:
addAll
in interfaceSet<PropertyModule>
- Overrides:
addAll
in classTreeSet<PropertyModule>
-
remove
- 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
Adds aSetListener
.- Parameters:
listener
- the listener to be added- See Also:
-
removeListener
Removes aSetListener
.- Parameters:
listener
- the listener to be removed- See Also:
-