public class SimpleObjectFactory extends Lang.F1<Class<?>,Object>
| Modifier and Type | Field and Description |
|---|---|
static SimpleObjectFactory |
INSTANCE |
| Constructor and Description |
|---|
SimpleObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(Class<?> aClass)
Apply this function to <T> type parameter.
|
andThen, andThen, applyOrElse, compose, compose, compose, compose, compose, compose, curry, invert, lift, orElse, timesbreakOutpublic static final SimpleObjectFactory INSTANCE
public Object apply(Class<?> aClass) throws NotAppliedException, Lang.Break
Lang.FunctionApply this function to <T> type parameter.
In case implementing a partial function, it can throw out an NotAppliedException if the function is not defined for the given parameter(s)
aClass - the argumentU type resultNotAppliedException - if the function doesn’t apply to the parameter(s)Lang.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.