|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.domain
Class Fixtures
java.lang.Object be.lassi.base.SaveableObject be.lassi.domain.Fixtures
- All Implemented Interfaces:
- java.lang.Iterable<Fixture>
public class Fixtures
- extends SaveableObject
- implements java.lang.Iterable<Fixture>
- extends SaveableObject
Collection with Fixture
elements.
Constructor Summary | |
---|---|
Fixtures()
Constructs a new instance. |
|
Fixtures(Dirty dirty)
Constructs a new instance. |
Method Summary | |
---|---|
void |
add(Fixture fixture)
Adds given fixture. |
void |
addAll(Fixtures added)
Adds all fixtures in given collection to this collection. |
void |
addListener(LListListener<Fixture> listener)
Adds listener to listen to collection changes. |
Fixture |
get(int index)
Gets the fixture at given index. |
int |
indexOf(Fixture fixture)
Gets the index in the collection of given fixture. |
java.util.Iterator<Fixture> |
iterator()
|
void |
remove(Fixture fixture)
Removes given fixture. |
void |
remove(int index)
Removes the fixture at given index. |
void |
removeListener(LListListener<Fixture> listener)
Removes given listener. |
Fixtures |
reversed()
Gets a copy of this fixture collection with all fixtures in reverse order. |
Fixtures |
shuffled()
Gets a copy of this fixture collection with all fixtures moved to a randomly choosen new position in the collection. |
int |
size()
Gets the number of fixtures in the collection. |
Methods inherited from class be.lassi.base.SaveableObject |
---|
doNotMarkDirty, getDirty, isDirty, markDirty, setDirty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
Fixtures
public Fixtures()
- Constructs a new instance.
Fixtures
public Fixtures(Dirty dirty)
- Constructs a new instance.
- Parameters:
dirty
- indicates whether the collection has changed since last save
Method Detail |
---|
add
public void add(Fixture fixture)
- Adds given fixture.
- Parameters:
fixture
- the fixture to be added
addAll
public void addAll(Fixtures added)
- Adds all fixtures in given collection to this collection.
- Parameters:
added
- the fixtures to be added
addListener
public void addListener(LListListener<Fixture> listener)
- Adds listener to listen to collection changes.
- Parameters:
listener
- the listener to be added
get
public Fixture get(int index)
- Gets the fixture at given index.
- Parameters:
index
- the fixture index- Returns:
- the fixture at given inde
indexOf
public int indexOf(Fixture fixture)
- Gets the index in the collection of given fixture.
- Parameters:
fixture
- the fixture for which to find the index- Returns:
- the fixture index, -1 if the fixture is not in the collection
iterator
public java.util.Iterator<Fixture> iterator()
-
- Specified by:
iterator
in interfacejava.lang.Iterable<Fixture>
remove
public void remove(Fixture fixture)
- Removes given fixture.
- Parameters:
fixture
- the fixture to be removed
remove
public void remove(int index)
- Removes the fixture at given index.
- Parameters:
index
- the fixture index
removeListener
public void removeListener(LListListener<Fixture> listener)
- Removes given listener.
- Parameters:
listener
- the listener to be removed
reversed
public Fixtures reversed()
- Gets a copy of this fixture collection with all fixtures
in reverse order.
- Returns:
- the fixture collection in reverse order
shuffled
public Fixtures shuffled()
- Gets a copy of this fixture collection with all fixtures
moved to a randomly choosen new position in the collection.
- Returns:
- the shuffled collection
size
public int size()
- Gets the number of fixtures in the collection.
- Returns:
- the fixture count
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |