krati.core.array.entry
Interface EntryValueFactory<T extends EntryValue>

Type Parameters:
T - Generic type of EntryValue
All Known Implementing Classes:
EntryValueIntFactory, EntryValueLongFactory, EntryValueShortFactory

public interface EntryValueFactory<T extends EntryValue>

EntryValueFactory.

Author:
jwu

Method Summary
 T newValue()
           
 T newValue(DataReader in)
           
 T[] newValueArray(int length)
          Creates an array of EntryValue of a specified length.
 void reinitValue(DataReader in, T value)
          Read data from stream to populate an EntryValue.
 

Method Detail

newValueArray

T[] newValueArray(int length)
Creates an array of EntryValue of a specified length.

Parameters:
length - the length of array.
Returns:
an array of EntryValue(s).

newValue

T newValue()
Returns:
an empty EntryValue.

newValue

T newValue(DataReader in)
                              throws IOException
Returns:
an EntryValue read from an input stream.
Throws:
IOException

reinitValue

void reinitValue(DataReader in,
                 T value)
                 throws IOException
Read data from stream to populate an EntryValue.

Parameters:
in - data reader for EntryValue.
value - an EntryValue to populate.
Throws:
IOException


Copyright © 2011. All Rights Reserved.