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 booleanequals(java.lang.Object arg0)Tests that the objects values are equal.booleanequals(java.lang.Object val, boolean includeTimestamp)QualityCodegetQuality()java.util.DategetTimestamp()java.lang.ObjectgetValue()inthashCode()java.lang.StringtoString()-
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:
getValuein interfaceQualifiedValue
-
getQuality
public QualityCode getQuality()
- Specified by:
getQualityin interfaceQualifiedValue
-
getTimestamp
public java.util.Date getTimestamp()
- Specified by:
getTimestampin 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:
equalsin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object val, boolean includeTimestamp)- Specified by:
equalsin interfaceQualifiedValue
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-