Package totalcross.io.device.bluetooth
Class DataElement
- java.lang.Object
-
- totalcross.io.device.bluetooth.DataElement
-
public class DataElement extends java.lang.ObjectThis class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOLstatic intDATALTstatic intDATSEQstatic intINT_1static intINT_16static intINT_2static intINT_4static intINT_8static intNULLstatic intSTRINGstatic intU_INT_1static intU_INT_16static intU_INT_2static intU_INT_4static intU_INT_8static intURLstatic intUUID
-
Constructor Summary
Constructors Constructor Description DataElement(boolean bool)DataElement(int valueType)DataElement(int valueType, long value)DataElement(int valueType, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElement(DataElement elem)booleangetBoolean()intgetDataType()longgetLong()intgetSize()java.lang.ObjectgetValue()voidinsertElementAt(DataElement elem, int index)booleanremoveElement(DataElement elem)
-
-
-
Field Detail
-
NULL
public static final int NULL
- See Also:
- Constant Field Values
-
U_INT_1
public static final int U_INT_1
- See Also:
- Constant Field Values
-
U_INT_2
public static final int U_INT_2
- See Also:
- Constant Field Values
-
U_INT_4
public static final int U_INT_4
- See Also:
- Constant Field Values
-
U_INT_8
public static final int U_INT_8
- See Also:
- Constant Field Values
-
U_INT_16
public static final int U_INT_16
- See Also:
- Constant Field Values
-
INT_1
public static final int INT_1
- See Also:
- Constant Field Values
-
INT_2
public static final int INT_2
- See Also:
- Constant Field Values
-
INT_4
public static final int INT_4
- See Also:
- Constant Field Values
-
INT_8
public static final int INT_8
- See Also:
- Constant Field Values
-
INT_16
public static final int INT_16
- See Also:
- Constant Field Values
-
URL
public static final int URL
- See Also:
- Constant Field Values
-
UUID
public static final int UUID
- See Also:
- Constant Field Values
-
BOOL
public static final int BOOL
- See Also:
- Constant Field Values
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
DATSEQ
public static final int DATSEQ
- See Also:
- Constant Field Values
-
DATALT
public static final int DATALT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addElement
public void addElement(DataElement elem)
-
insertElementAt
public void insertElementAt(DataElement elem, int index)
-
getSize
public int getSize()
-
removeElement
public boolean removeElement(DataElement elem)
-
getDataType
public int getDataType()
-
getLong
public long getLong()
-
getBoolean
public boolean getBoolean()
-
getValue
public java.lang.Object getValue()
-
-