public class MutableDomainValue extends Object implements MutableVarValue
| Modifier and Type | Field and Description |
|---|---|
Domain |
domain
It stores the value of the mutable domain.
|
| Constructor and Description |
|---|
MutableDomainValue(Domain domain) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
It clones the value of mutable variable.
|
MutableVarValue |
previous()
It returns the earlier value of mutable variable.
|
void |
setPrevious(MutableVarValue nn)
It replaces the earlier value of a mutable variable with value passed as
parameter.
|
void |
setStamp(int stamp)
It sets the stamp of value of mutable variable.
|
int |
stamp()
It returns the stamp value of value of mutable variable.
|
String |
toString()
It returns string representation of the current value of mutable
variable.
|
public Domain domain
public MutableDomainValue(Domain domain)
domain - specifies domain stored by a mutable domain.public Object clone()
MutableVarValueclone in interface MutableVarValueclone in class Objectpublic MutableVarValue previous()
MutableVarValueprevious in interface MutableVarValuepublic void setPrevious(MutableVarValue nn)
MutableVarValuesetPrevious in interface MutableVarValuenn - the previous value for this mutable variable.public void setStamp(int stamp)
MutableVarValuesetStamp in interface MutableVarValuestamp - the new stamp of value of mutable variablepublic int stamp()
MutableVarValuestamp in interface MutableVarValuepublic String toString()
MutableVarValuetoString in interface MutableVarValuetoString in class ObjectCopyright © 2016. All rights reserved.