|
|||||||||
| Home >> All >> org >> metacosm >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.metacosm.util
Class RelativeModifier

java.lang.Objectorg.metacosm.util.RelativeModifier
- All Implemented Interfaces:
- org.metacosm.framework.persistence.Persistent, java.io.Serializable
- public final class RelativeModifier
- extends java.lang.Object
- implements org.metacosm.framework.persistence.Persistent
- extends java.lang.Object
A RelativeModifier modifies the value of a Property. It doesn't completly change it by affecting a new value (it would be an AbsoluteModifier in this case), but apply some operation on the current value to give the new one.
| Field Summary | |
private java.lang.Object |
value
|
| Constructor Summary | |
RelativeModifier(java.lang.Object value)
|
|
| Method Summary | |
java.lang.Object |
getValue()
|
void |
load(java.io.InputStream is)
Loads from the stream. |
void |
save(java.io.OutputStream os)
Saves on the stream. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
value
private java.lang.Object value
| Constructor Detail |
RelativeModifier
public RelativeModifier(java.lang.Object value) throws java.lang.IllegalArgumentException
| Method Detail |
getValue
public java.lang.Object getValue()
save
public void save(java.io.OutputStream os) throws java.io.IOException
- Description copied from interface:
org.metacosm.framework.persistence.Persistent - Saves on the stream.
- Specified by:
savein interfaceorg.metacosm.framework.persistence.Persistent
load
public void load(java.io.InputStream is) throws java.io.IOException
- Description copied from interface:
org.metacosm.framework.persistence.Persistent - Loads from the stream.
- Specified by:
loadin interfaceorg.metacosm.framework.persistence.Persistent
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> metacosm >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.metacosm.util.RelativeModifier