Interface BaseMap<K,​V>

    • Method Detail

      • entry

        @NotNull
        @NotNull Option<UnmodMap.UnEntry<K,​V>> entry​(K key)
        Returns an option of the key/value pair associated with this key
      • assoc

        @NotNull
        @NotNull BaseMap<K,​V> assoc​(K key,
                                          V val)
        Returns a new map with the given key/value added
      • assoc

        @NotNull
        default @NotNull BaseMap<K,​V> assoc​(@NotNull
                                                  Map.Entry<K,​V> entry)
        Returns a new map with an immutable copy of the given entry added
      • without

        @NotNull
        @NotNull BaseMap<K,​V> without​(K key)
        Returns a new map with the given key/value removed
      • entrySet

        @NotNull
        @NotNull BaseSet<Map.Entry<K,​V>> entrySet()
        Returns a view of the mappings contained in this map. The set should actually contain UnmodMap.Entry items, but that return signature is illegal in Java, so you'll just have to remember.
        Specified by:
        entrySet in interface Map<K,​V>
        Specified by:
        entrySet in interface UnmodMap<K,​V>
      • keySet

        @NotNull
        @NotNull BaseSet<K> keySet()
        Returns a view of the keys contained in this map.
        Specified by:
        keySet in interface Map<K,​V>
        Specified by:
        keySet in interface UnmodMap<K,​V>
      • containsKey

        default boolean containsKey​(Object key)
        Specified by:
        containsKey in interface Map<K,​V>
      • get

        default V get​(Object key)
        Specified by:
        get in interface Map<K,​V>
      • getOrElse

        default V getOrElse​(K key,
                            V notFound)