Package org.nd4j.linalg.compression
Interface AbstractStorage<T>
-
public interface AbstractStorage<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
This method purges everything from storageboolean
containsKey(T key)
This method checks, if storage contains specified keyvoid
drop(T key)
This method removes value by specified keyINDArray
get(T key)
Get object from the storage, by keylong
size()
This method returns number of entries available in storagevoid
store(T key, double[] array)
Store object into storagevoid
store(T key, float[] array)
Store object into storagevoid
store(T key, INDArray object)
Store object into storageboolean
storeIfAbsent(T key, INDArray object)
Store object into storage, if it doesn't exist
-
-
-
Method Detail
-
store
void store(T key, float[] array)
Store object into storage- Parameters:
key
-array
-
-
store
void store(T key, double[] array)
Store object into storage- Parameters:
key
-array
-
-
storeIfAbsent
boolean storeIfAbsent(T key, INDArray object)
Store object into storage, if it doesn't exist- Parameters:
key
-object
-
-
containsKey
boolean containsKey(T key)
This method checks, if storage contains specified key- Parameters:
key
-- Returns:
-
clear
void clear()
This method purges everything from storage
-
drop
void drop(T key)
This method removes value by specified key
-
size
long size()
This method returns number of entries available in storage
-
-