public class MapIntegerDBIDIntegerStore extends Object implements WritableIntegerDataStore
Modifier and Type | Field and Description |
---|---|
private gnu.trove.map.TIntIntMap |
map
Data storage
|
Constructor and Description |
---|
MapIntegerDBIDIntegerStore(int size)
Constructor.
|
MapIntegerDBIDIntegerStore(int size,
int def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(DBIDRef id)
Delete the contents for a particular ID and notifies the registered
listeners.
|
void |
destroy()
Deallocate the storage, freeing the memory and notifies the registered
listeners.
|
Integer |
get(DBIDRef id)
Deprecated.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
String |
getShortName()
A short name for the result, useful for file names.
|
int |
intValue(DBIDRef id)
Retrieves an object from the storage.
|
int |
put(DBIDRef id,
int value)
Associates the specified value with the specified id in this storage.
|
Integer |
put(DBIDRef id,
Integer value)
Deprecated.
|
int |
putInt(DBIDRef id,
int value)
Associates the specified value with the specified id in this storage.
|
public MapIntegerDBIDIntegerStore(int size)
size
- Expected sizepublic MapIntegerDBIDIntegerStore(int size, int def)
size
- Expected sizedef
- Default value@Deprecated public Integer get(DBIDRef id)
IntegerDataStore
get
in interface DataStore<Integer>
get
in interface IntegerDataStore
id
- Database ID.null
public int intValue(DBIDRef id)
IntegerDataStore
intValue
in interface IntegerDataStore
id
- Database ID.public String getLongName()
Result
getLongName
in interface Result
public String getShortName()
Result
getShortName
in interface Result
@Deprecated public Integer put(DBIDRef id, Integer value)
WritableIntegerDataStore
put
in interface WritableDataStore<Integer>
put
in interface WritableIntegerDataStore
id
- Database ID.value
- Value to store.public void destroy()
WritableDataStore
destroy
in interface WritableDataStore<Integer>
public void delete(DBIDRef id)
WritableDataStore
delete
in interface WritableDataStore<Integer>
id
- Database ID.public int putInt(DBIDRef id, int value)
WritableIntegerDataStore
putInt
in interface WritableIntegerDataStore
id
- Database ID.value
- Value to store.public int put(DBIDRef id, int value)
WritableIntegerDataStore
put
in interface WritableIntegerDataStore
id
- Database ID.value
- Value to store.