|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableArray
com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableIntegerArray
public final class SerializableIntegerArray
Represents a integer array.
| Constructor Summary | |
|---|---|
SerializableIntegerArray(int length)
Creates a new serializable integer array. |
|
SerializableIntegerArray(int[] value)
Creates a new serializable double array. |
|
| Method Summary | |
|---|---|
SerializableIntegerArray |
clone()
Creates a copy of this serializable type. |
void |
fromString(String value)
Deserializes the type from a String representation. |
static SerializableIntegerArray |
fromValues(int... values)
Creates a new SerializableIntegerArray instance with the given values. |
Integer |
get(int index)
Gets the element at the specified index. |
MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
int[] |
getValue()
Gets the raw value of the serializable type. |
boolean |
hasSameDataAs(Object obj)
|
void |
set(int index,
Object value)
Sets the value at the specified index. |
void |
setValue(Object value)
Sets the value for this type. |
int |
size()
Gets the size of the array. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableArray |
|---|
fromByteBuffer, getDimensions, getLength, getTypeIdentifier, split, toByteBuffer |
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType |
|---|
getParameterName, hasParameterNameSet, setParameterName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SerializableIntegerArray(int length)
length - The length of the array.public SerializableIntegerArray(int[] value)
value - The value for the array.| Method Detail |
|---|
public MessageParameterType getParameterType()
getParameterType in interface ISerializableTypegetParameterType in class SerializableArraypublic void fromString(String value)
fromString in interface ISerializableTypefromString in class SerializableArrayvalue - The string representation for the type.public static SerializableIntegerArray fromValues(int... values)
values - The values.
public int[] getValue()
public void setValue(Object value)
value - The value for this type. Must be compatible with the type. The
value should never be null. Each subclass must
check this.public SerializableIntegerArray clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic String toString()
toString in class Objectpublic Integer get(int index)
get in class SerializableArrayindex - The index.
public void set(int index,
Object value)
set in class SerializableArrayindex - The index.value - The value.public int size()
size in class SerializableArraypublic boolean hasSameDataAs(Object obj)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||