类 SimpleValueWrapper

java.lang.Object
cn.taketoday.cache.support.SimpleValueWrapper
所有已实现的接口:
Cache.ValueWrapper

public class SimpleValueWrapper extends Object implements Cache.ValueWrapper
Straightforward implementation of Cache.ValueWrapper, simply holding the value as given at construction and returning it from get().
从以下版本开始:
4.0 2022/3/9 20:48
作者:
Costin Leau, Harry Yang
  • 构造器详细资料

    • SimpleValueWrapper

      public SimpleValueWrapper(@Nullable Object value)
      Create a new SimpleValueWrapper instance for exposing the given value.
      参数:
      value - the value to expose (may be null)
  • 方法详细资料

    • get

      @Nullable public Object get()
      Simply returns the value as given at construction time.
      指定者:
      get 在接口中 Cache.ValueWrapper