public class IntegerValue extends AttributeValue
| Modifier and Type | Field and Description |
|---|---|
protected Long |
integerValue |
protected int |
length |
| Constructor and Description |
|---|
IntegerValue() |
IntegerValue(int i) |
IntegerValue(Integer i) |
IntegerValue(long l) |
IntegerValue(Long l) |
| Modifier and Type | Method and Description |
|---|---|
void |
copy(AttributeValue value) |
void |
getBytes(ByteBuffer buffer) |
void |
getBytes(OutputStream out) |
int |
getLength() |
Long |
getValue() |
Serializable |
getValueObject() |
static boolean |
isValid(long l) |
void |
setLength(int length) |
void |
setLong(Long l) |
void |
setValue(byte[] b) |
void |
setValue(byte[] b,
int off,
int len) |
void |
setValue(long l) |
void |
setValue(String v) |
void |
setValueObject(Serializable o) |
String |
toString() |
String |
toXMLString() |
getBytes, getBytes, toDebugStringprotected int length
protected Long integerValue
public IntegerValue()
public IntegerValue(Long l)
public IntegerValue(Integer i)
public IntegerValue(int i)
public IntegerValue(long l)
public void copy(AttributeValue value)
copy in class AttributeValuepublic int getLength()
getLength in class AttributeValuepublic void setLength(int length)
public void getBytes(OutputStream out) throws IOException
getBytes in class AttributeValueIOExceptionpublic void getBytes(ByteBuffer buffer)
getBytes in class AttributeValuepublic void setValue(byte[] b)
setValue in class AttributeValuepublic void setValue(byte[] b,
int off,
int len)
setValue in class AttributeValuepublic void setValue(String v)
setValue in class AttributeValuepublic Long getValue()
public String toString()
toString in class AttributeValuepublic String toXMLString()
toXMLString in class AttributeValuepublic void setLong(Long l)
public Serializable getValueObject()
getValueObject in class AttributeValuepublic void setValueObject(Serializable o)
setValueObject in class AttributeValuepublic void setValue(long l)
throws NumberFormatException
NumberFormatExceptionpublic static boolean isValid(long l)
Copyright © 2017. All rights reserved.