ELEMENT - the type of the returning elementpublic abstract static class Lang.Provider<ELEMENT> extends Lang.F0<ELEMENT>
A Provider is a function that apply to nothing and return an element
| Constructor and Description |
|---|
Provider() |
| Modifier and Type | Method and Description |
|---|---|
ELEMENT |
apply()
user application to implement main logic of applying the function
|
abstract ELEMENT |
get()
Get the element
|
breakOutpublic final ELEMENT 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 containerpublic abstract ELEMENT get()
Get the element
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.