fm.liveswitch.Info Class Referenceabstract

Information. More...

Public Member Functions

String getId ()
 Gets the identifier. More...
 
void setId (String value)
 Sets the identifier. More...
 

Static Public Member Functions

static< T extends fm.liveswitch.IEquivalent< T > T[] processArray (T[] newValues, T[] oldValues)
 Processes an array for an info. More...
 
static fm.liveswitch.NullableBoolean processBoolean (boolean newValue, boolean oldValue)
 Processes a boolean for an info. More...
 
static boolean[] processBooleanArray (boolean[] newValues, boolean[] oldValues)
 Processes a boolean array for an info. More...
 
static fm.liveswitch.NullableDouble processDouble (double newValue, double oldValue)
 Processes a double for an info. More...
 
static fm.liveswitch.NullableFloat processFloat (float newValue, float oldValue)
 Processes a float for an info. More...
 
static float[] processFloatArray (float[] newValues, float[] oldValues)
 Processes a float array for an info. More...
 
static double[] processFloatArray (double[] newValues, double[] oldValues)
 Processes a double array for an info. More...
 
static fm.liveswitch.NullableInteger processInteger (int newValue, int oldValue)
 Processes an integer for an info. More...
 
static int[] processIntegerArray (int[] newValues, int[] oldValues)
 Processes a integer array for an info. More...
 
static fm.liveswitch.NullableLong processLong (long newValue, long oldValue)
 Processes a long for an info. More...
 
static long[] processLongArray (long[] newValues, long[] oldValues)
 Processes a long array for an info. More...
 
static< T extends Object &fm.liveswitch.IEquivalent< T > T processObject (T newValue, T oldValue)
 Processes an object for an info. More...
 
static fm.liveswitch.NullableShort processShort (short newValue, short oldValue)
 Processes a short for an info. More...
 
static short[] processShortArray (short[] newValues, short[] oldValues)
 Processes a short array for an info. More...
 
static String processString (String newValue, String oldValue)
 Processes a string for an info. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
 Info ()
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 

Detailed Description

Information.

Constructor & Destructor Documentation

◆ Info()

fm.liveswitch.Info.Info ( )
protected

Member Function Documentation

◆ deserializeProperties()

◆ getId()

String fm.liveswitch.Info.getId ( )

Gets the identifier.

◆ processArray()

static <T extends fm.liveswitch.IEquivalent<T> T [] fm.liveswitch.Info.processArray ( T[]  newValues,
T[]  oldValues 
)
static

Processes an array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values are not equivalent to the old values; otherwise null.

◆ processBoolean()

static fm.liveswitch.NullableBoolean fm.liveswitch.Info.processBoolean ( boolean  newValue,
boolean  oldValue 
)
static

Processes a boolean for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processBooleanArray()

static boolean [] fm.liveswitch.Info.processBooleanArray ( boolean[]  newValues,
boolean[]  oldValues 
)
static

Processes a boolean array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processDouble()

static fm.liveswitch.NullableDouble fm.liveswitch.Info.processDouble ( double  newValue,
double  oldValue 
)
static

Processes a double for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processFloat()

static fm.liveswitch.NullableFloat fm.liveswitch.Info.processFloat ( float  newValue,
float  oldValue 
)
static

Processes a float for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processFloatArray() [1/2]

static double [] fm.liveswitch.Info.processFloatArray ( double[]  newValues,
double[]  oldValues 
)
static

Processes a double array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processFloatArray() [2/2]

static float [] fm.liveswitch.Info.processFloatArray ( float[]  newValues,
float[]  oldValues 
)
static

Processes a float array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processInteger()

static fm.liveswitch.NullableInteger fm.liveswitch.Info.processInteger ( int  newValue,
int  oldValue 
)
static

Processes an integer for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processIntegerArray()

static int [] fm.liveswitch.Info.processIntegerArray ( int[]  newValues,
int[]  oldValues 
)
static

Processes a integer array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processLong()

static fm.liveswitch.NullableLong fm.liveswitch.Info.processLong ( long  newValue,
long  oldValue 
)
static

Processes a long for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processLongArray()

static long [] fm.liveswitch.Info.processLongArray ( long[]  newValues,
long[]  oldValues 
)
static

Processes a long array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processObject()

static <T extends Object & fm.liveswitch.IEquivalent<T> T fm.liveswitch.Info.processObject ( newValue,
oldValue 
)
static

Processes an object for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processShort()

static fm.liveswitch.NullableShort fm.liveswitch.Info.processShort ( short  newValue,
short  oldValue 
)
static

Processes a short for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ processShortArray()

static short [] fm.liveswitch.Info.processShortArray ( short[]  newValues,
short[]  oldValues 
)
static

Processes a short array for an info.

Parameters
newValuesThe new values.
oldValuesThe old values.
Returns
The new values, if the new values do not equal the old values; otherwise null.

◆ processString()

static String fm.liveswitch.Info.processString ( String  newValue,
String  oldValue 
)
static

Processes a string for an info.

Parameters
newValueThe new value.
oldValueThe old value.
Returns
The new value, if the new value does not equal the old value; otherwise null.

◆ serializeProperties()

◆ setId()

void fm.liveswitch.Info.setId ( String  value)

Sets the identifier.