All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mwg.struct.StringLongMap Maven / Gradle / Ivy

There is a newer version: 10
Show newest version
package org.mwg.struct;

public interface StringLongMap extends Map {

    long getValue(String key);

    String getByHash(long index);

    boolean containsHash(long index);

    /**
     * Add the tuple key/value to the getOrCreateMap.
     * In case the value is null, the value will be atomically replaced by the current size of the getOrCreateMap and associated to the key
     *
     * @param key   to insert key
     * @param value to insert value
     */
    void put(String key, long value);

    /**
     * Remove the corresponding key from the getOrCreateMap
     *
     * @param key to remove key
     */
    void remove(String key);

    /**
     * Iterate over all Key/value tuple of the cam
     *
     * @param callback closure that will be called for each K/V tuple
     */
    void each(StringLongMapCallBack callback);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy