Enum Class NoOpCache

java.lang.Object
java.lang.Enum<NoOpCache>
io.fluxcapacitor.javaclient.persisting.caching.NoOpCache
All Implemented Interfaces:
Cache, Serializable, AutoCloseable, Comparable<NoOpCache>, Constable

public enum NoOpCache extends Enum<NoOpCache> implements Cache
  • Enum Constant Details

    • INSTANCE

      public static final NoOpCache INSTANCE
  • Method Details

    • values

      public static NoOpCache[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NoOpCache valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • put

      public Object put(Object id, @NonNull @NonNull Object value)
      Specified by:
      put in interface Cache
    • putIfAbsent

      public Object putIfAbsent(Object id, @NonNull @NonNull Object value)
      Specified by:
      putIfAbsent in interface Cache
    • computeIfAbsent

      public <T> T computeIfAbsent(Object id, Function<? super Object,T> mappingFunction)
      Specified by:
      computeIfAbsent in interface Cache
    • computeIfPresent

      public <T> T computeIfPresent(Object id, BiFunction<? super Object,? super T,? extends T> mappingFunction)
      Specified by:
      computeIfPresent in interface Cache
    • compute

      public <T> T compute(Object id, BiFunction<? super Object,? super T,? extends T> mappingFunction)
      Specified by:
      compute in interface Cache
    • get

      public <T> T get(Object id)
      Specified by:
      get in interface Cache
    • containsKey

      public boolean containsKey(Object id)
      Specified by:
      containsKey in interface Cache
    • remove

      public <T> T remove(Object id)
      Specified by:
      remove in interface Cache
    • clear

      public void clear()
      Specified by:
      clear in interface Cache
    • size

      public int size()
      Specified by:
      size in interface Cache
    • registerEvictionListener

      public Registration registerEvictionListener(Consumer<CacheEvictionEvent> listener)
      Specified by:
      registerEvictionListener in interface Cache
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Cache