public class LongValue extends Value implements ILongValue
ILongValue.ILongValueIValue.FormatMAX_FORMAT_VALUE_COUNT| Constructor and Description |
|---|
LongValue(ITimestamp time,
ISeverity severity,
String status,
INumericMetaData metaData,
long[] values)
Constructs a new value from pieces.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
format(IValue.Format how,
int prec)
Format the value as a string.
|
long |
getValue() |
long[] |
getValues() |
int |
hashCode() |
format, getDisplayChar, getMetaData, getSeverity, getStatus, getTime, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitformat, getMetaData, getSeverity, getStatus, getTimepublic LongValue(ITimestamp time, ISeverity severity, String status, INumericMetaData metaData, long[] values)
time - the timestamp of the valueseverity - the severity of the valuestatus - the status of the valuemetaData - the metadata describing the PVvalues - the valuespublic final long[] getValues()
getValues in interface ILongValuepublic final long getValue()
getValue in interface ILongValueSince most samples are probably scalars, this is a convenient way to get that one and only element.
ILongValue.getValues()public final String format(IValue.Format how, int prec)
IValueThis means only the numeric or string value. Not the timestamp, not the severity and status.
format in interface IValueformat in class Valuehow - Detail on how to format.prec - Might be used by some format types to select for example the number of digits after the decimal
point. A precision of '-1' might select the default-precision obtained from the MetaData.Copyright © 2023 European Spallation Source. All rights reserved.