Interface MemoizingFunction<K,V>

All Superinterfaces:
Function<K,V>
All Known Implementing Classes:
DefaultMemoizingFunction

public interface MemoizingFunction<K,V> extends Function<K,V>
  • Method Details

    • clear

      void clear()
    • remove

      V remove(K key)
    • isCached

      boolean isCached(K key)
    • forEach

      void forEach(Consumer<? super V> consumer)
    • compose

      @NonNull default <K1> @NonNull MemoizingFunction<K1,V> compose(@NonNull @NonNull Function<? super K1,? extends K> before)
      Specified by:
      compose in interface Function<K,V>