TKey - Specifies the type of keys in the maps.TValue - Specifies the type of values in the maps.
Remarks: The container is persistent (stored on the hard drive) and can contain at most 281,474,976,710,656 maps.
public class FMapContainer64<TKey,TValue> extends java.lang.Object implements IDisposable
| Constructor and Description |
|---|
FMapContainer64(java.lang.Class<TKey> keyType,
java.lang.Class<TValue> valueType)
Creates an empty container that holds sequences
of the specified type.
|
FMapContainer64(java.lang.Class<TKey> keyType,
java.lang.Class<TValue> valueType,
java.lang.String fileName,
FileMode mode)
Constructs an FMapContainer64 instance using the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Clear()
Removes all maps 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.
|
FMap64<TKey,TValue> |
Item(long index)
Gets the element at the specified position.
|
FMap64<TKey,TValue> |
NewMap(boolean unique)
Creates an empty index container using the default comparator.
|
FMap64<TKey,TValue> |
NewMap(IFunc2Arg<TKey,TKey,java.lang.Boolean> keyCompare,
boolean unique)
Creates an empty index container using the specified comparator.
|
boolean |
Remove(FMap64<TKey,TValue> list)
Removes the specified object from the container.
|
long |
Size()
Returns the number of elements in the container.
|
public FMapContainer64(java.lang.Class<TKey> keyType, java.lang.Class<TValue> valueType)
keyType - The specified key type.valueType - The specified value type.public FMapContainer64(java.lang.Class<TKey> keyType, java.lang.Class<TValue> valueType, java.lang.String fileName, FileMode mode)
keyType - The specified key type.valueType - The specified value type.fileName - The specified file.mode - A FileMode constant (Open or Create) that determines
how to open or create the file.ArgumentException - Thrown when the
specified mode is different than Open or Create.
Remarks: The container is persistent (saved on the hard drive), and the Close() method must always be called to flush the internal buffers.
public void Close()
public void Dispose()
Dispose in interface IDisposablepublic FMap64<TKey,TValue> NewMap(boolean unique)
unique - A boolean value indicating if the index
allows duplicates.public FMap64<TKey,TValue> NewMap(IFunc2Arg<TKey,TKey,java.lang.Boolean> keyCompare, boolean unique)
keyCompare - The specified comparator.unique - A boolean value indicating if the index
allows duplicates.public boolean Remove(FMap64<TKey,TValue> list)
list - The object to remove from the container.public long Size()
public FMap64<TKey,TValue> Item(long index)
index - The zero-based index of the element to get.
ArgumentOutOfRangeException - Thrown when the
specified index is out of [0, Size - 1] range.public void Clear()
Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.