fm.liveswitch.NetworkInterfaceInfo Class Reference

Network interface information. More...

Public Member Functions

long getAdapterSpeed ()
 Gets the network interface adapter speed. More...
 
String getIPAddress ()
 Gets the network interface address. More...
 
String getMask ()
 Gets the network interface subnet mask. More...
 
String getType ()
 Gets the type. More...
 
 NetworkInterfaceInfo ()
 
void setAdapterSpeed (long value)
 Sets the network interface adapter speed. More...
 
void setIPAddress (String value)
 Sets the network interface address. More...
 
void setMask (String value)
 Sets the network interface subnet mask. More...
 
void setType (String value)
 Sets the type. More...
 
String toJson ()
 Serializes this instance to Json. More...
 
- Public Member Functions inherited from fm.liveswitch.Info
String getId ()
 Gets the identifier. More...
 
void setId (String value)
 Sets the identifier. More...
 

Static Public Member Functions

static fm.liveswitch.NetworkInterfaceInfo fromJson (String networkInterfaceInfoJson)
 Deserializes Json to a NetworkInterfaceInfo. More...
 
static fm.liveswitch.NetworkInterfaceInfo[] fromJsonArray (String networkInterfaceInfosJson)
 Deserializes JSON to an array. More...
 
static String toJson (fm.liveswitch.NetworkInterfaceInfo client)
 Serializes an instance to Json. More...
 
static String toJsonArray (fm.liveswitch.NetworkInterfaceInfo[] networkInterfaceInfos)
 Serializes an array to JSON. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Info
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...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 
- Protected Member Functions inherited from fm.liveswitch.Info
 Info ()
 

Detailed Description

Network interface information.

Constructor & Destructor Documentation

◆ NetworkInterfaceInfo()

fm.liveswitch.NetworkInterfaceInfo.NetworkInterfaceInfo ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.NetworkInterfaceInfo.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.Info.

◆ fromJson()

static fm.liveswitch.NetworkInterfaceInfo fm.liveswitch.NetworkInterfaceInfo.fromJson ( String  networkInterfaceInfoJson)
static

Deserializes Json to a NetworkInterfaceInfo.

Parameters
networkInterfaceInfoJsonThe serialized Json.
Returns
The deserialized NetworkInterfaceInfo.

◆ fromJsonArray()

static fm.liveswitch.NetworkInterfaceInfo [] fm.liveswitch.NetworkInterfaceInfo.fromJsonArray ( String  networkInterfaceInfosJson)
static

Deserializes JSON to an array.

Parameters
networkInterfaceInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ getAdapterSpeed()

long fm.liveswitch.NetworkInterfaceInfo.getAdapterSpeed ( )

Gets the network interface adapter speed.

◆ getIPAddress()

String fm.liveswitch.NetworkInterfaceInfo.getIPAddress ( )

Gets the network interface address.

◆ getMask()

String fm.liveswitch.NetworkInterfaceInfo.getMask ( )

Gets the network interface subnet mask.

◆ getType()

String fm.liveswitch.NetworkInterfaceInfo.getType ( )

Gets the type.

◆ serializeProperties()

void fm.liveswitch.NetworkInterfaceInfo.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Info.

◆ setAdapterSpeed()

void fm.liveswitch.NetworkInterfaceInfo.setAdapterSpeed ( long  value)

Sets the network interface adapter speed.

◆ setIPAddress()

void fm.liveswitch.NetworkInterfaceInfo.setIPAddress ( String  value)

Sets the network interface address.

◆ setMask()

void fm.liveswitch.NetworkInterfaceInfo.setMask ( String  value)

Sets the network interface subnet mask.

◆ setType()

void fm.liveswitch.NetworkInterfaceInfo.setType ( String  value)

Sets the type.

◆ toJson() [1/2]

String fm.liveswitch.NetworkInterfaceInfo.toJson ( )

Serializes this instance to Json.

◆ toJson() [2/2]

static String fm.liveswitch.NetworkInterfaceInfo.toJson ( fm.liveswitch.NetworkInterfaceInfo  client)
static

Serializes an instance to Json.

Parameters
clientThe instance to serialize.
Returns
Serialized Json.

◆ toJsonArray()

static String fm.liveswitch.NetworkInterfaceInfo.toJsonArray ( fm.liveswitch.NetworkInterfaceInfo[]  networkInterfaceInfos)
static

Serializes an array to JSON.

Parameters
networkInterfaceInfosThe array to serialize.
Returns
The serialized JSON.