java.lang.Object
java.lang.Enum<NoOpCache>
io.fluxcapacitor.javaclient.persisting.caching.NoOpCache
All Implemented Interfaces:
Cache, Serializable, Comparable<NoOpCache>, java.lang.constant.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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NoOpCache valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
    • getIfPresent

      public <T> T getIfPresent(Object id)
      Specified by:
      getIfPresent in interface Cache
    • invalidate

      public void invalidate(Object id)
      Specified by:
      invalidate in interface Cache
    • invalidateAll

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

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