|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.value.Value
de.aitools.aq.value.pair.IntString
public class IntString
Field Summary | |
---|---|
static int |
NATIVE_TYPE_ID
|
Fields inherited from class de.aitools.aq.value.Value |
---|
DELIMITER_C, DELIMITER_S, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_SHORT |
Constructor Summary | |
---|---|
IntString()
|
|
IntString(IntString value)
|
|
IntString(int e1,
java.lang.String e2)
|
Method Summary | |
---|---|
void |
copyFrom(com.sun.jna.Pointer buffer)
Reads all elements of that value from a piece of memory pointed to by buffer . |
void |
copyTo(com.sun.jna.Pointer buffer)
Writes all elements of that value to a piece of memory pointed to by buffer . |
boolean |
equals(java.lang.Object obj)
|
int |
getE1()
|
java.lang.String |
getE2()
|
int |
getSerializedSize()
Returns the size in bytes of this object when serialized. |
com.sun.jna.Memory |
getSharedMemory()
Returns a pointer to a piece of memory, that provides space for at least Value.getSerializedSize() bytes and can be directly used in conjunction
with Value.copyTo(Pointer) and Value.copyFrom(Pointer) . |
int |
hashCode()
|
boolean |
parseFrom(java.util.Scanner sc)
Parses new content of that value from the given Scanner . |
java.io.PrintStream |
printTo(java.io.PrintStream stream)
Prints all elements of that value to a stream in a human-readable format. |
void |
set(int e1,
java.lang.String e2)
|
void |
setE1(int e1)
|
void |
setE2(java.lang.String e2)
|
Methods inherited from class de.aitools.aq.value.Value |
---|
getNativeTypeId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NATIVE_TYPE_ID
Constructor Detail |
---|
public IntString()
public IntString(int e1, java.lang.String e2)
public IntString(IntString value)
Method Detail |
---|
public int getE1()
public void setE1(int e1)
public java.lang.String getE2()
public void setE2(java.lang.String e2)
public void set(int e1, java.lang.String e2)
public void copyFrom(com.sun.jna.Pointer buffer)
Value
buffer
. You have to make sure, that the size of this buffer is
at least Value.getSerializedSize()
.
copyFrom
in class Value
buffer
- a pointer to free memorypublic void copyTo(com.sun.jna.Pointer buffer)
Value
buffer
. You have to make sure, that the size of this buffer is
at least Value.getSerializedSize()
.
copyTo
in class Value
buffer
- a pointer to free memorypublic boolean parseFrom(java.util.Scanner sc)
Value
Scanner
.
parseFrom
in class Value
sc
- a Scanner
to parse the data from
true
if on success, false
otherwise.public java.io.PrintStream printTo(java.io.PrintStream stream)
Value
printTo
in class Value
stream
- a stream to print all elements topublic com.sun.jna.Memory getSharedMemory()
Value
Returns a pointer to a piece of memory, that provides space for at
least Value.getSerializedSize()
bytes and can be directly used in conjunction
with Value.copyTo(Pointer)
and Value.copyFrom(Pointer)
.
For the sake of efficiency the provided memory may be some sort of
shared memory, which can be used temporarily, to transfer data somewhere,
e.g. to native code. Please note that the usage of this buffer in
multi-threaded code has to be synchronized
.
getSharedMemory
in class Value
Value.copyFrom(Pointer)
,
Value.copyTo(Pointer)
,
Value.getSerializedSize()
public int getSerializedSize()
Value
getSerializedSize
in class Value
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |