public class StringValue extends Value implements IStringValue
IStringValue.IStringValueIValue.FormatMAX_FORMAT_VALUE_COUNT| Constructor and Description |
|---|
StringValue(ITimestamp time,
ISeverity severity,
String status,
String[] values)
Constructs a new StringValue.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
format(IValue.Format how,
int precision)
Format the value as a string.
|
String |
getValue() |
String[] |
getValues() |
int |
hashCode() |
format, getDisplayChar, getMetaData, getSeverity, getStatus, getTime, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitformat, getMetaData, getSeverity, getStatus, getTimepublic StringValue(ITimestamp time, ISeverity severity, String status, String[] values)
time - the timestamp of the valueseverity - the severity of the valuestatus - the statusvalues - the values arraypublic final String[] getValues()
getValues in interface IStringValuepublic final String getValue()
getValue in interface IStringValueSince most samples are probably scalars, this is a convenient way to get that one and only element.
IStringValue.getValues()public final String format(IValue.Format how, int precision)
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.precision - 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.