Class FifoBufferFactory
Defines the factory which allows to create a high-performance array-backed fifo buffers.
Inherited Members
Namespace:
Assembly: .dll
Syntax
public final class FifoBufferFactory
Constructors
FifoBufferFactory()
Declaration
public FifoBufferFactory()
Fields
NORMALIZED_BASE_INDEX
Declaration
public static final int NORMALIZED_BASE_INDEX
Field Value
| Type | Description |
|---|---|
| int |
Methods
<T>create(Class<T> type, int size)
Creates a fifo buffer instance.
Declaration
public static ISciList<T> <T>create(Class<T> type, int size)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | type | The type of items to be placed in fifo buffer. |
| int | size | The size of FifoBuffer. |
Returns
| Type | Description |
|---|---|
| ISciList<T> | A fifo buffer instance. |
<T>createSmart(Class<T> type, int size)
Creates a fifo buffer instance.
Declaration
public static ISmartList<T> <T>createSmart(Class<T> type, int size)
Parameters
| Type | Name | Description |
|---|---|---|
| Class<T> | type | The type of items to be placed in fifo buffer. |
| int | size | The size of FifoBuffer. |
Returns
| Type | Description |
|---|---|
| ISmartList<T> | A fifo buffer instance. |