Interface LazyValue<T>

All Superinterfaces:
Supplier<T>, Value<T>

public interface LazyValue<T> extends Value<T>
Lazily initialized value.

Instances of this interface are initialized lazily during the first call to their value retrieval method. Information about the initialization state of a LazyValue instance is available via isInitialized() method.

Author:
Marek Potociar
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the lazy value has been initialized already (i.e.

    Methods inherited from interface org.glassfish.jersey.internal.util.collection.Value

    get
  • Method Details

    • isInitialized

      boolean isInitialized()
      Check if the lazy value has been initialized already (i.e. its Value.get() method has already been called previously) or not.
      Returns:
      true if the lazy value has already been initialized, false otherwise.