be.lassi.domain
Class Levels
java.lang.Object
be.lassi.domain.Levels
- All Implemented Interfaces:
- java.lang.Iterable<Level>
public class Levels
- extends java.lang.Object
- implements java.lang.Iterable<Level>
Collection of Level
objects.
Constructor Summary |
Levels(int numberOfLevels)
|
Method Summary |
boolean |
equals(java.lang.Object object)
|
Level |
get(int index)
Get the Level at given index. |
boolean |
hasListeners()
Indicates whether there are any listeners registered to monitor
any level value changes. |
java.util.Iterator<Level> |
iterator()
|
int |
size()
Number of Level objects in the collection. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Levels
public Levels(int numberOfLevels)
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class java.lang.Object
get
public Level get(int index)
- Get the
Level
at given index.
- Parameters:
index
-
- Returns:
- Level
hasListeners
public boolean hasListeners()
- Indicates whether there are any listeners registered to monitor
any level value changes.
- Returns:
- true if there is at least one listener on one of the levels
iterator
public java.util.Iterator<Level> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Level>
size
public int size()
- Number of Level objects in the collection.
- Returns:
- int Size.