public class CategoryIntAssociation extends Object implements CategoryAssociation
CategoryAssociation
that associates an integer with a category.Modifier and Type | Field and Description |
---|---|
static String |
ASSOCIATION_LIST_ID |
Constructor and Description |
---|
CategoryIntAssociation() |
CategoryIntAssociation(int value) |
Modifier and Type | Method and Description |
---|---|
void |
deserialize(ByteArrayDataInput input)
Deserializes the association value from the given
DataInput . |
String |
getCategoryListID()
Returns the ID of the category association.
|
int |
getValue()
Returns the value associated with a category.
|
int |
maxBytesNeeded()
Returns the maximum bytes needed to encode the association value.
|
void |
serialize(ByteArrayDataOutput output)
Serializes the associated value into the given
DataOutput . |
String |
toString() |
public static final String ASSOCIATION_LIST_ID
public CategoryIntAssociation()
public CategoryIntAssociation(int value)
public void serialize(ByteArrayDataOutput output)
CategoryAssociation
DataOutput
.serialize
in interface CategoryAssociation
public void deserialize(ByteArrayDataInput input)
CategoryAssociation
DataInput
.deserialize
in interface CategoryAssociation
public int maxBytesNeeded()
CategoryAssociation
maxBytesNeeded
in interface CategoryAssociation
public String getCategoryListID()
CategoryAssociation
getCategoryListID
in interface CategoryAssociation
public int getValue()
CategoryIntAssociation()
, you should call
deserialize(ByteArrayDataInput)
before calling this method, or
otherwise the value returned is undefined.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.