Class LazyInitializedCacheMap.NoopInitializer

java.lang.Object
org.apache.mina.util.LazyInitializer<V>
org.apache.mina.util.LazyInitializedCacheMap.NoopInitializer
Enclosing class:
LazyInitializedCacheMap<K,V>

public class LazyInitializedCacheMap.NoopInitializer extends LazyInitializer<V>
This class provides a noop LazyInitializer meaning it will return the same object it received when instantiated.
Since:
MINA 2.0.0-M2
  • Field Details

    • value

      private V value
  • Constructor Details

    • NoopInitializer

      public NoopInitializer(V value)
      Create a new NoopInitializer instance
      Parameters:
      value - The value stored in this initializer
  • Method Details

    • init

      public V init()
      Initializes the value.
      Specified by:
      init in class LazyInitializer<V>
      Returns:
      the initialized value