|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.TWGLongArray
Sendable long integer array object, based on DataValue interface. These are intended for use when data needs to be communicated to and from both Java and non-Java code.
Field Summary | |
---|---|
static long |
serialVersionUID
|
Fields inherited from interface com.tivoli.twg.libs.DataValue |
---|
BOOLEAN_ARRAY_TYPE, BOOLEAN_TYPE, BYTE_ARRAY_TYPE, BYTE_TYPE, DATE_TYPE, DOUBLE_ARRAY_TYPE, DOUBLE_TYPE, FLOAT_ARRAY_TYPE, FLOAT_TYPE, FORMATTED_STRING_TYPE, INTEGER_ARRAY_TYPE, INTEGER_TYPE, LOCALESPECSTRING_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NLSSTRING_TYPE, NONE_TYPE, SHORT_ARRAY_TYPE, SHORT_TYPE, STRING_ARRAY_TYPE, STRING_TYPE |
Constructor Summary | |
---|---|
TWGLongArray()
Default constructor : null string |
|
TWGLongArray(long[] v)
Construct with initial value |
|
TWGLongArray(long[] v,
int start,
int l)
Construct with initial value |
|
TWGLongArray(LongValueSet v)
Construct with initial value |
Method Summary | |
---|---|
void |
appendValue(long newval)
Append new value at end of array |
int |
getDataValueType()
Get DataValue type |
int |
getLength()
Get length of array |
long[] |
getValue()
Get copy of value array |
long |
getValueAt(int index)
Get new value at given index of array |
int |
readDataValue(byte[] buf,
int start)
Read value from byte array into object |
void |
removeValueAt(int index)
Remove value at given index of array |
void |
setLength(int newlen)
Set length of array |
void |
setValue(long[] v)
Set new value |
void |
setValue(long[] v,
int start,
int l)
Set new value |
void |
setValueAt(int index,
long newval)
Set new value at given index of array |
java.lang.String |
toNLSString(java.util.Locale loc)
Get NLS value as string |
java.lang.String |
toString()
Get value as string |
int |
writeDataValue(byte[] buf,
int start)
Write value into byte array : used for sending data value |
int |
writeDataValueLength()
Get length needed to write value into byte array : used for sending data value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long serialVersionUID
Constructor Detail |
public TWGLongArray()
public TWGLongArray(long[] v, int start, int l)
v
- - initial value arraystart
- - starting index of valuel
- - length of value arraypublic TWGLongArray(long[] v)
v
- - initial valuepublic TWGLongArray(LongValueSet v)
v
- - initial valueMethod Detail |
public java.lang.String toString()
public java.lang.String toNLSString(java.util.Locale loc)
toNLSString
in interface DataValue
loc
- - localepublic long[] getValue()
public void setValue(long[] v)
v
- - new value arraypublic void setValue(long[] v, int start, int l)
v
- - new value arraystart
- - start index of value setpublic long getValueAt(int index)
index
- - index to be readpublic void removeValueAt(int index)
index
- - index to be removedpublic void setValueAt(int index, long newval)
index
- - index to be writtennewval
- - value to be writtenpublic void appendValue(long newval)
newval
- - value to be writtenpublic int getLength()
public void setLength(int newlen)
newlen
- - new lengthpublic int writeDataValue(byte[] buf, int start)
writeDataValue
in interface DataValue
buf
- - buffer to write data intostart
- - starting index for data write in 'buf'
public int writeDataValueLength()
writeDataValueLength
in interface DataValue
public int readDataValue(byte[] buf, int start)
readDataValue
in interface DataValue
buf
- - buffer to read fromstart
- - index of start of data to be read
public int getDataValueType()
getDataValueType
in interface DataValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |