be.lassi.lanbox.domain
Class PatchPair
java.lang.Object
be.lassi.lanbox.domain.PatchPair
public class PatchPair
- extends java.lang.Object
Information about a channel patched to a dimmer.
Constructor Summary |
PatchPair(int dimmerId,
int channelId)
Constructs a new instance. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PatchPair
public PatchPair(int dimmerId,
int channelId)
- Constructs a new instance.
- Parameters:
dimmerId
- the dimmer identifierchannelId
- the channel identifier
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in class java.lang.Object
getChannelId
public int getChannelId()
- Gets the channel identifier.
- Returns:
- the channel identier
getDimmerId
public int getDimmerId()
- Gets the dimmer identifier.
- Returns:
- the dimmer identifier
hashCode
public int hashCode()
-
- Overrides:
hashCode
in class java.lang.Object
setChannelId
public void setChannelId(int channelId)
- Sets the channel identifier.
- Parameters:
channelId
- the channel identifier to set
setDimmerId
public void setDimmerId(int dimmerId)
- Sets the dimmer identifier.
- Parameters:
dimmerId
- the dimmer identifier
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object