|
||||||||||
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.LongLong
public class LongLong
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 | |
---|---|
LongLong()
|
|
LongLong(LongLong value)
|
|
LongLong(long e1,
long 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)
|
long |
getE1()
|
long |
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 ps)
Prints all elements of that value to a stream in a human-readable format. |
void |
set(long e1,
long e2)
|
void |
setE1(long e1)
|
void |
setE2(long 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 LongLong()
public LongLong(long e1, long e2)
public LongLong(LongLong value)
Method Detail |
---|
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 long getE1()
public long getE2()
public 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 ps)
Value
printTo
in class Value
ps
- a stream to print all elements topublic void setE1(long e1)
public void setE2(long e2)
public void set(long e1, long e2)
public 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 |