C - - The parent class of whatever this list will be holding.
This is intended to be CommandData or Response
but it does not hurt to be more specific.public class CrList<C extends CrDataBase> extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_PRIME |
| Constructor and Description |
|---|
CrList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCr(C cr)
Add a new item to this list.
|
void |
deserialize()
Deserialize all items in this list.
|
boolean |
equals(Object obj) |
List<C> |
getCrs()
Get the list of items that this wraps.
|
int |
getSerializedSize()
Get the size of this list, ignoring all deserialized items.
|
int |
getSize()
Get the size of this list, ignoring all serialized items.
|
int |
hashCode() |
void |
serialize()
Serialize all items in this list.
|
void |
setCrs(List<C> crs)
Set the list of items that this wraps.
|
String |
toString() |
public static final int HASH_PRIME
public void serialize()
public void deserialize()
public void addCr(C cr)
cr - - the object to addpublic int getSize()
public int getSerializedSize()
public List<C> getCrs()
Copyright © 2017. All rights reserved.