Class ImmutableQualifiedValue
- java.lang.Object
-
- com.inductiveautomation.perspective.common.ImmutableQualifiedValue
-
- All Implemented Interfaces:
QualifiedValue
,java.io.Serializable
public class ImmutableQualifiedValue extends java.lang.Object implements QualifiedValue
Created by carlg on 12/29/2016.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValue
BAD, CONFIG_ERROR, DISABLED, EXPRESSION_EVAL_ERROR, INITIAL_VALUE, NOT_CONNECTED, NOT_FOUND, REFERENCE_NOT_FOUND, STALE, TRANSFORM_ERROR, TYPE_CONVERSION, UNKNOWN, UNSUPPORTED
-
-
Constructor Summary
Constructors Constructor Description ImmutableQualifiedValue(java.lang.Object value)
ImmutableQualifiedValue(java.lang.Object value, QualityCode quality)
ImmutableQualifiedValue(java.lang.Object value, QualityCode quality, java.util.Date timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object arg0)
Tests that the objects values are equal.boolean
equals(java.lang.Object val, boolean includeTimestamp)
QualityCode
getQuality()
java.util.Date
getTimestamp()
java.lang.Object
getValue()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.model.values.QualifiedValue
derive, derive, derive
-
-
-
-
Constructor Detail
-
ImmutableQualifiedValue
public ImmutableQualifiedValue(java.lang.Object value)
-
ImmutableQualifiedValue
public ImmutableQualifiedValue(java.lang.Object value, QualityCode quality)
-
ImmutableQualifiedValue
public ImmutableQualifiedValue(java.lang.Object value, QualityCode quality, java.util.Date timestamp)
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfaceQualifiedValue
-
getQuality
public QualityCode getQuality()
- Specified by:
getQuality
in interfaceQualifiedValue
-
getTimestamp
public java.util.Date getTimestamp()
- Specified by:
getTimestamp
in interfaceQualifiedValue
-
equals
public boolean equals(java.lang.Object arg0)
Tests that the objects values are equal. DOES NOT TEST timestamp, because in most cases you want to leave it out. If you want to test it, call equals(val,true).- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object val, boolean includeTimestamp)
- Specified by:
equals
in interfaceQualifiedValue
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-