public class ValueUtility extends Object
| Constructor and Description |
|---|
ValueUtility() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compare(Value a,
Value b) |
static boolean |
equals(Value a,
Value b) |
static Value |
fromGpb(Yamcs.Value v) |
static Value |
getBinaryValue(byte[] x) |
static Value |
getBooleanValue(boolean b) |
static Value |
getColumnValue(ColumnDefinition cd,
Object v) |
static Yamcs.Value |
getDoubleGbpValue(double d) |
static Value |
getDoubleValue(double d) |
static Value |
getFloatValue(float f) |
static Value |
getSint32Value(int x) |
static Value |
getSint64Value(long x) |
static Yamcs.Value |
getStringGbpValue(String s) |
static Value |
getStringValue(String x) |
static Value |
getTimestampValue(long x) |
static Yamcs.Value |
getUint32GbpValue(int x) |
static Value |
getUint32Value(int x) |
static Value |
getUint64Value(long x) |
static DataType |
getYarchType(Yamcs.Value.Type type) |
static Object |
getYarchValue(Value v) |
static Object |
getYarchValue(Yamcs.Value v) |
static boolean |
processAsDouble(Value v,
java.util.function.DoubleConsumer c)
if the passed on value is float, double or integer invoke the function on the double value and return true
if v is of other types return false
|
static boolean |
processAsDouble1(Value v,
java.util.function.DoubleConsumer c)
if the passed on value is FLOAT or DOUBLE, invoke the function on the double value and return true
if v is of other types return false
|
static boolean |
processAsLong(Value v,
java.util.function.LongConsumer c)
if the passed on value is INT32, SINT32, INT64 or SINT64, invoke the function on the long value and return true
if v is of other types return false
|
static Yamcs.Value |
toGbp(Value v) |
public static Value getUint32Value(int x)
public static Value getSint32Value(int x)
public static Value getUint64Value(long x)
public static Value getSint64Value(long x)
public static Value getBinaryValue(byte[] x)
public static Value getTimestampValue(long x)
public static Value getBooleanValue(boolean b)
public static Value getFloatValue(float f)
public static Value getDoubleValue(double d)
public static Yamcs.Value getDoubleGbpValue(double d)
public static Yamcs.Value getStringGbpValue(String s)
public static Yamcs.Value getUint32GbpValue(int x)
public static Value getColumnValue(ColumnDefinition cd, Object v)
public static Object getYarchValue(Yamcs.Value v)
public static DataType getYarchType(Yamcs.Value.Type type)
public static Yamcs.Value toGbp(Value v)
public static Value fromGpb(Yamcs.Value v)
public static boolean processAsLong(Value v, java.util.function.LongConsumer c)
v - c - public static boolean processAsDouble(Value v, java.util.function.DoubleConsumer c)
v - c - public static boolean processAsDouble1(Value v, java.util.function.DoubleConsumer c)
v - c - Copyright © 2018 Space Applications Services. All rights reserved.