T
- Type of object.public final class Lazy<T> extends Object
Example:
private final Lazy<Object> lazy = new Lazy<>(Object::new);
Object lazyInstance = lazy.get();
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns underlying object, initialize when necessary.
|
Copyright © 2012–2022 OmniFaces. All rights reserved.