|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
be.lassi.base
Class LongHolder
java.lang.Object be.lassi.base.AbstractHolder be.lassi.base.LongHolder
- All Implemented Interfaces:
- NamedValue, java.io.Serializable
public class LongHolder
- extends AbstractHolder
Value holder for long values.
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
LongHolder()
Constructs a new value holder. |
|
LongHolder(java.lang.String name,
int value)
Constructs a new value holder. |
Method Summary | |
---|---|
void |
addListener(LongListener listener)
Adds an object that listens to value changes. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getStringValue()
Gets the value in string format. |
long |
getValue()
Gets the long value. |
int |
hashCode()
|
void |
removeListener(LongListener listener)
Removes given listener. |
void |
setStringValue(java.lang.String value)
Sets the value in string format. |
void |
setValue(long value)
Sets the long value. |
Methods inherited from class be.lassi.base.AbstractHolder |
---|
getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
LongHolder
public LongHolder()
- Constructs a new value holder.
LongHolder
public LongHolder(java.lang.String name, int value)
- Constructs a new value holder.
- Parameters:
name
- the value holder namevalue
- the initial integer value
Method Detail |
---|
addListener
public void addListener(LongListener listener)
- Adds an object that listens to value changes.
- Parameters:
listener
- the listener to be added
equals
public boolean equals(java.lang.Object object)
-
- Overrides:
equals
in classAbstractHolder
getStringValue
public java.lang.String getStringValue()
- Gets the value in string format.
- Returns:
- the value in string format
getValue
public long getValue()
- Gets the long value.
- Returns:
- the long value
hashCode
public int hashCode()
-
- Overrides:
hashCode
in classAbstractHolder
removeListener
public void removeListener(LongListener listener)
- Removes given listener.
- Parameters:
listener
- the listener to be removed
setStringValue
public void setStringValue(java.lang.String value)
- Sets the value in string format.
- Parameters:
value
- the value to be set in string format
setValue
public void setValue(long value)
- Sets the long value.
- Parameters:
value
- the value to set
|
Lighting Assistant 1.2 | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |