T - object typepublic final class LazyInstance<T> extends Object
clazz using constructor with the specified arguments.
This object might be useful as an instance factory or as lazy instance instantiator.| Constructor and Description |
|---|
LazyInstance(Class<? extends T> clazz,
Object... arguments)
Constructs new
LazyInstance. |
| Modifier and Type | Method and Description |
|---|---|
T |
create()
Returns new object instance.
|
T |
get()
Returns singleton object instance.
|
@NotNull public T create()
LazyInstance.@NotNull public T get()
LazyInstance.Copyright © 2020. All rights reserved.