类 ConcurrentCache<K,V>

java.lang.Object
cn.taketoday.util.ConcurrentCache<K,V>

public final class ConcurrentCache<K,V> extends Object
作者:
TODAY
2019-02-23 15:48
  • 字段详细资料

  • 构造器详细资料

    • ConcurrentCache

      public ConcurrentCache(int size)
  • 方法详细资料

    • of

      public static <K, V> ConcurrentCache<K,V> of()
    • fromSize

      public static <K, V> ConcurrentCache<K,V> fromSize(int size)
    • get

      public V get(K k)
    • get

      public V get(K k, Function<? super K,? extends V> function)
    • remove

      public Object remove(K k)
    • clear

      public void clear()
    • put

      public void put(K k, V v)
    • putAll

      public void putAll(Map<? extends K,? extends V> m)
    • isEmpty

      public boolean isEmpty()