public class MutableDomainValue extends Object implements MutableVarValue, Cloneable
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()
MutableVarValue
clone
in interface MutableVarValue
clone
in class Object
public MutableVarValue previous()
MutableVarValue
previous
in interface MutableVarValue
public void setPrevious(MutableVarValue nn)
MutableVarValue
setPrevious
in interface MutableVarValue
nn
- the previous value for this mutable variable.public void setStamp(int stamp)
MutableVarValue
setStamp
in interface MutableVarValue
stamp
- the new stamp of value of mutable variablepublic int stamp()
MutableVarValue
stamp
in interface MutableVarValue
public String toString()
MutableVarValue
toString
in interface MutableVarValue
toString
in class Object
Copyright © 2022. All rights reserved.