T - Specifies the type of elements in the sequences.
Remarks: The container is persistent (stored on the hard drive) and can contain at most 281,474,976,710,656 sequences.
public class FVectorContainer64<T>
extends java.lang.Object
| Constructor and Description |
|---|
FVectorContainer64(java.lang.Class<T> type)
Creates an empty container that holds sequences
of the specified type.
|
FVectorContainer64(java.lang.Class<T> type,
java.lang.String fileName,
FileMode mode)
Constructs a FVectorContainer64 instance using the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Clear()
Removes all vectors from the parent container.
|
void |
Close()
Closes the file and releases any resources
associated with the current buffered stream.
|
void |
Dispose()
Closes the file and releases any resources
associated with the current buffered stream.
|
FVector64<T> |
Item(long index)
Gets the element at the specified index.
|
FVector64<T> |
NewVector()
Creates an empty vector.
|
FVector64<T> |
NewVector(long n,
T item)
Creates a vector and initializes it with the specified value.
|
boolean |
Remove(FVector64<T> list)
Removes the specified object from the container.
|
long |
Size()
Returns the number of elements in the container.
|
public FVectorContainer64(java.lang.Class<T> type)
type - The specified Class<T> type.public FVectorContainer64(java.lang.Class<T> type, java.lang.String fileName, FileMode mode)
type - The specified Class<T> type.fileName - The specified file.mode - A FileMode constant (Open or Create) that determines
how to open or create the file.java.lang.RuntimeException - When the specified mode is different than Open or Create.
Remarks: The container is persistent (saved on the hard drive) and always call Close() method to flush the buffers.
public void Close()
public void Dispose()
public FVector64<T> NewVector(long n, T item)
n - The number of copies of an element being
inserted into the sequence.item - The value of the element being
inserted into the sequence.public boolean Remove(FVector64<T> list)
list - The object to remove from the container.public long Size()
public FVector64<T> Item(long index)
index - The zero-based index of the element to get or set.
java.lang.RuntimeException - When the
specified index is of [0, Size - 1] range.public void Clear()
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.