Package de.hsh.graja.common
Class Defaults.TypeWithDefault<T>
java.lang.Object
de.hsh.graja.common.Defaults.TypeWithDefault<T>
- Type Parameters:
T- The type of the value.
- Enclosing class:
- Defaults
A default value od type
T.-
Method Summary
-
Method Details
-
getValOrDefault
- Parameters:
val- a value, that is given and checked, if it is null.- Returns:
- if the parameter
valis not null, returnsval, otherwise the default value is returned.
-
getDefault
- Returns:
- the default value.
-