public class IntegerRecord extends Object implements IOReadableWritable
| Constructor and Description |
|---|
IntegerRecord()
Constructs an empty integer record (Mainly used for
serialization, do not call this constructor in your program).
|
IntegerRecord(int value)
Constructs a new integer record with the given integer value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getValue()
Returns the value of this integer record.
|
int |
hashCode() |
void |
read(DataInputView in) |
void |
setValue(int value)
Set the value of this integer record.
|
void |
write(DataOutputView out) |
public IntegerRecord(int value)
value - the integer value this record should wrap uppublic IntegerRecord()
public int getValue()
public void setValue(int value)
value - the new value for this integer recordpublic void read(DataInputView in) throws IOException
read in interface IOReadableWritableIOExceptionpublic void write(DataOutputView out) throws IOException
write in interface IOReadableWritableIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.