T - Type of itempublic abstract class ArrayOfItemsSerDe<T> extends Object
| Constructor and Description |
|---|
ArrayOfItemsSerDe() |
| Modifier and Type | Method and Description |
|---|---|
abstract T[] |
deserializeFromMemory(Memory mem,
int numItems)
Deserialize an array of items from a given Memory object.
|
short |
getId()
Deprecated.
|
abstract byte[] |
serializeToByteArray(T[] items)
Serialize an array of items to byte array.
|
public abstract byte[] serializeToByteArray(T[] items)
items - array of items to be serializedpublic abstract T[] deserializeFromMemory(Memory mem, int numItems)
mem - Memory containing a serialized array of itemsnumItems - number of items in the serialized array@Deprecated public short getId()
You will need to override this in the following cases:
Copyright © 2015–2017 Yahoo! Inc.. All rights reserved.