public class Calculable extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
id
The identifier for the Calculable
|
protected double |
value
The value for the Calculable
|
protected long |
when
Holds value of property when, which indicates when the Calculable was recorded
|
Constructor and Description |
---|
Calculable()
Create a new Calculable
|
Calculable(String id,
double value)
Create a new Calculable that records the time
|
Calculable(String id,
double value,
long when)
Create a new Calculable
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
String |
getArchiveRecord()
Gets an archival representation for this Calculable
|
String |
getId()
Getter for property id
|
double |
getValue()
Getter for property value.
|
long |
getWhen()
Getter for property when.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
setId(String id)
Setter for property id
|
void |
setValue(double value)
Setter for property value.
|
void |
setWhen(long when)
Setter for property when.
|
String |
toString()
Returns a string representation of the object.
|
protected String id
protected double value
protected long when
public Calculable()
public Calculable(String id, double value)
id
- The identifier for the Calculablevalue
- The value for the Calculablepublic Calculable(String id, double value, long when)
id
- The identifier for this Calculable recordvalue
- The value for the Calculable Recordwhen
- The time when the recorded value was capturedpublic String getId()
public void setId(String id)
id
- New value of property id.public double getValue()
public void setValue(double value)
value
- New value of property value.public long getWhen()
public void setWhen(long when)
when
- New value of property when.public boolean equals(Object obj)
public int hashCode()
public String getArchiveRecord()
Copyright © GigaSpaces.