public class SimpleObjectFactory extends Osgl.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, Osgl.Break
Osgl.FunctionIn 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)Osgl.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2017. All Rights Reserved.