Package org.yamcs.utils
Class ValueHelper
- java.lang.Object
-
- org.yamcs.utils.ValueHelper
-
public class ValueHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ValueHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.yamcs.protobuf.Yamcs.Value
newAggregateValue(Object... objs)
returns new aggregate value The passed arguments have to be of type String, Value, String Value...static org.yamcs.protobuf.Yamcs.Value
newArrayValue(org.yamcs.protobuf.Yamcs.Value... values)
returns new array valuestatic org.yamcs.protobuf.Yamcs.Value
newTimestampValue(long x)
returns a TIMESTAMP Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(boolean x)
returns a BOOLEAN Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(byte[] x)
returns a BINARY Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(double x)
returns a DOUBLE Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(float x)
returns a FLOAT Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(int x)
returns a SINT32 Valuestatic org.yamcs.protobuf.Yamcs.Value
newValue(String x)
returns a STRING Value
-
-
-
Method Detail
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(int x)
returns a SINT32 Value- Parameters:
x
-- Returns:
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(double x)
returns a DOUBLE Value- Parameters:
x
-- Returns:
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(float x)
returns a FLOAT Value- Parameters:
x
-- Returns:
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(String x)
returns a STRING Value- Parameters:
x
-- Returns:
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(byte[] x)
returns a BINARY Value- Parameters:
x
-- Returns:
-
newValue
public static org.yamcs.protobuf.Yamcs.Value newValue(boolean x)
returns a BOOLEAN Value- Parameters:
x
-- Returns:
-
newTimestampValue
public static org.yamcs.protobuf.Yamcs.Value newTimestampValue(long x)
returns a TIMESTAMP Value- Parameters:
x
-- Returns:
-
newArrayValue
public static org.yamcs.protobuf.Yamcs.Value newArrayValue(org.yamcs.protobuf.Yamcs.Value... values)
returns new array value- Returns:
-
newAggregateValue
public static org.yamcs.protobuf.Yamcs.Value newAggregateValue(Object... objs)
returns new aggregate value The passed arguments have to be of type String, Value, String Value...- Returns:
-
-