public class Lookup extends Object
Constructor and Description |
---|
Lookup() |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> type) |
<T> T |
set(Class<T> type,
T instance) |
<T> T |
setIfNull(Class<T> type,
T instance)
Overwrites the value only if the current value is null.
|
public <T> T get(Class<T> type)
public <T> T set(Class<T> type, T instance)
public <T> T setIfNull(Class<T> type, T instance)
instance
value.
Otherwise return the current value, which is non-null.Copyright © 2004–2021. All rights reserved.