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

org.organicdesign.fp.collections.ImMapTrans Maven / Gradle / Ivy

package org.organicdesign.fp.collections;

/**
 You could think of this as a builder for a PersistentHashMap.  It builds a little faster than the
 persistent one.  This is inherently NOT thread-safe.
 */
public interface ImMapTrans extends ImMap {
    ImMapTrans asTransient();

    /** Returns the Equator used by this map for equals comparisons and hashCodes */
    Equator equator();

    /** Returns a persistent/immutable version of this transient map. */
    ImMapTrans persistent();

    /** {@inheritDoc} */
    @Override default ImSet keySet() { return PersistentHashSet.ofMap(this); }

    /** {@inheritDoc} */
    @Override ImMapTrans assoc(K key, V val);

    /** {@inheritDoc} */
    @Override ImMapTrans without(K key);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy