public abstract class AbstractSimpleComponentsMonitor extends java.lang.Object implements ComponentsMonitor
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
components
The components.
|
| Constructor and Description |
|---|
AbstractSimpleComponentsMonitor(java.lang.String[] components)
Instantiates a new abstract simple components monitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allComponentsUsed()
Check if all components are used.
|
java.util.List<java.lang.String> |
getRemainingComponents()
Gets the remaining components.
|
ComponentsMonitor |
useComponent(java.lang.String component)
Use a component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfinalStateValidpublic AbstractSimpleComponentsMonitor(java.lang.String[] components)
components - the componentspublic ComponentsMonitor useComponent(java.lang.String component) throws java.lang.IllegalArgumentException
useComponent in interface ComponentsMonitorcomponent - the componentjava.lang.IllegalArgumentException - if the component is already usedpublic boolean allComponentsUsed()
allComponentsUsed in interface ComponentsMonitorpublic java.util.List<java.lang.String> getRemainingComponents()
getRemainingComponents in interface ComponentsMonitor