org.glassfish.jersey.internal.util.collection
Interface LazyUnsafeValue<T,E extends Throwable>
- All Superinterfaces:
- UnsafeValue<T,E>
public interface LazyUnsafeValue<T,E extends Throwable>
- extends UnsafeValue<T,E>
Lazily initialized unsafe value.
Instances of this interface are initialized lazily during the first call to their
value retrieval method. Information about the initialization state
of a LazyUnsafeValue instance is available via isInitialized() method.
- Author:
- Marek Potociar (marek.potociar at oracle.com)
|
Method Summary |
boolean |
isInitialized()
Check if the lazy value has been initialized already (i.e. |
| Methods inherited from interface org.glassfish.jersey.internal.util.collection.UnsafeValue |
get |
isInitialized
boolean isInitialized()
- Check if the lazy value has been initialized already (i.e. its
UnsafeValue.get() method
has already been called previously) or not.
- Returns:
true if the lazy value has already been initialized, false otherwise.
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.