T - the type of the instance been created by the factorypublic abstract static class Lang.Factory<T> extends Lang.F0<T>
The class adapt traditional Factory to Function
| Constructor and Description |
|---|
Factory() |
| Modifier and Type | Method and Description |
|---|---|
T |
apply()
user application to implement main logic of applying the function
|
abstract T |
create()
The abstract create method that will be called by the
apply() method |
breakOutpublic T apply() throws NotAppliedException, Lang.Break
Lang.Func0user application to implement main logic of applying the function
NotAppliedException - if the function doesn’t apply to the current contextLang.Break - to short cut collecting operations (fold/reduce) on an containerCopyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.