Bluestep JS Documentation
    Preparing search index...

    Interface DataStore<V>

    interface DataStore<V extends Serializable> {
        clear(): DataStore<V>;
        containsKey(key: string): boolean;
        containsValue(value: V): any;
        delete(key: string): DataStore<V>;
        get(key: string): V;
        getDataStoreFactory(): DataStoreFactory;
        getId(): string;
        isEmpty(): boolean;
        keySet(): Set<string>;
        set(key: string, value: V): DataStore<V>;
        size(): number;
        values(): Collection<V>;
    }

    Type Parameters

    Implemented by

    Index

    Methods

    • Deletes all of the stored keys and values.

      Returns DataStore<V>

    • Returns whether the store contains the given key.

      Parameters

      • key: string

      Returns boolean

    • Returns whether the store contains the given value.

      Parameters

      • value: V

      Returns any

    • Deletes the stored key and value based on the given key, or ignored if the key doesn't already exist.

      Parameters

      • key: string

        key or null to ignore

      Returns DataStore<V>

    • Returns the stored value for the given key or null if not found.

      Parameters

      • key: string

        key or null for null result

      Returns V

    • Returns the data store factory.

      Returns DataStoreFactory

    • Returns the data store ID.

      Returns string

    • Returns whether there are any stored keys.

      Returns boolean

    • Returns the unmodifiable set of all stored keys.

      Order of the keys is not specified.

      Returns Set<string>

    • Stores the given value for the given key (replacing any existing value).

      Parameters

      • key: string

        key

      • value: V

        value object

      Returns DataStore<V>

    • Returns the number of stored keys.

      Returns number

    • Returns the unmodifiable collection of all stored values.

      Returns Collection<V>