|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.lanbox.domain
Class ChannelChanges
java.lang.Object be.lassi.lanbox.domain.ChannelChanges
- All Implemented Interfaces:
- java.lang.Iterable<ChannelChange>
public class ChannelChanges
- extends java.lang.Object
- implements java.lang.Iterable<ChannelChange>
- extends java.lang.Object
Collection of ChannelChange
objects.
Constructor Summary | |
---|---|
ChannelChanges()
Constructs a new instance. |
|
ChannelChanges(java.util.List<ChannelChange> changes)
Constructs a new instance. |
Method Summary | |
---|---|
void |
add(ChannelChange change)
Adds channel change. |
void |
add(int channelId,
int dmxValue)
Constructs and adds a new channel change. |
void |
append(java.lang.StringBuilder b)
|
void |
eliminateDoubles()
Reduces the number of channel changes to 1 per channel (only the last channel change is kept if there are more than 1 for a given channel). |
boolean |
equals(java.lang.Object object)
|
ChannelChange |
get(int index)
|
java.lang.String |
getString()
|
int |
hashCode()
|
java.util.Iterator<ChannelChange> |
iterator()
|
void |
set(ChannelChanges changes)
Replaces the channel changes in this collection with the channel changes in given collection. |
int |
size()
Gets the number of channel changes in this collection. |
void |
sort()
|
ChannelChanges[] |
split(int max)
|
ChannelChange[] |
toArray()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ChannelChanges
public ChannelChanges()
- Constructs a new instance.
ChannelChanges
public ChannelChanges(java.util.List<ChannelChange> changes)
- Constructs a new instance.
- Parameters:
changes
- initial channel changes
Method Detail |
---|
add
public void add(ChannelChange change)
- Adds channel change.
- Parameters:
change
- the channel change to be added
add
public void add(int channelId, int dmxValue)
- Constructs and adds a new channel change.
- Parameters:
channelId
- the channel identifierdmxValue
- the dmx value
append
public void append(java.lang.StringBuilder b)
eliminateDoubles
public void eliminateDoubles()
- Reduces the number of channel changes to 1 per channel (only the
last channel change is kept if there are more than 1 for a given
channel).
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in classjava.lang.Object
get
public ChannelChange get(int index)
getString
public java.lang.String getString()
hashCode
public int hashCode()
-
- Overrides:
hashCode
in classjava.lang.Object
iterator
public java.util.Iterator<ChannelChange> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ChannelChange>
set
public void set(ChannelChanges changes)
- Replaces the channel changes in this collection with the
channel changes in given collection.
- Parameters:
changes
- the new channel changes
size
public int size()
- Gets the number of channel changes in this collection.
- Returns:
- the change count
sort
public void sort()
split
public ChannelChanges[] split(int max)
toArray
public ChannelChange[] toArray()
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |