| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.concurrent | |
| org.osgl.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.F0<R>
Default implementation for
Lang.Func0. |
static class |
Lang.Factory<T>
The class adapt traditional Factory to Function
|
static class |
Lang.Producer<PRODUCT>
A Producer is a provider that
Lang.Producer.produce() product |
static class |
Lang.Provider<ELEMENT>
A Provider is a function that apply to nothing and return an element
|
static class |
Lang.Val<T> |
static class |
Lang.Var<T> |
| Modifier and Type | Method and Description |
|---|---|
Lang.F0<R> |
Lang.F0.andThen(Lang.Func0<? extends R>... fs)
Returns a composed function that applied, in sequence, this function and all functions specified one by one.
|
static boolean |
Lang.bool(Lang.Func0<?> v)
Do bool evaluation on an
Lang.Func0 instance. |
Lang.F0<R> |
Lang.F1.compose(Lang.Func0<? extends P1> before)
Returns an
F0<R>> function by composing the specified Func0<P1> function with this function applied last |
static <R> Lang.F0<R> |
Lang.f0(Lang.Func0<? extends R> f0)
Convert a general
Lang.Func0 typed function to Lang.F0 type |
static <T> Lang.Factory<T> |
Lang.factory(Lang.Func0<T> func) |
static Lang.F0<Boolean> |
Lang.F.negate(Lang.Func0<Boolean> predicate)
Returns a negate function of the specified predicate function
|
static boolean |
Lang.not(Lang.Func0<?> f)
Returns negative of
Lang.bool(Func0) |
Lang.F0<R> |
Lang.F0.orElse(Lang.Func0<? extends R> fallback)
Returns a composed function that when applied, try to apply this function first, in case a
RuntimeException is captured apply to the fallback function specified. |
T |
Lang.Option.orElse(Lang.Func0<? extends T> other)
Return the value if present, otherwise invoke
other and return the result of that invocation. |
Lang.F0<T> |
Lang.Option.f.orElse(Lang.Func0<? extends T> other)
Returns a function that when applied, run
Option#orElse(Func0) on this Option |
Lang.Var<T> |
Lang.Var.update(Lang.Func0<T> changer) |
| Modifier and Type | Class and Description |
|---|---|
static class |
ContextLocal.InitialValueProvider<T> |
class |
ContextLocalBase<T> |
class |
JDKThreadLocal<T>
Implement
ContextLocal using JDK ThreadLocal |
| Modifier and Type | Class and Description |
|---|---|
static class |
Img._Load<T extends Img._Load> |
static class |
Img.BinarySourceProcessor<PROCESSOR extends Img.BinarySourceProcessor<PROCESSOR,STAGE>,STAGE extends Img.ProcessorStage<STAGE,PROCESSOR>>
The base class that process two image sources and produce result image
|
static class |
Img.Blur |
static class |
Img.Blur.Stage |
static class |
Img.Concatenater |
static class |
Img.Concatenater.Stage |
static class |
Img.Cropper |
static class |
Img.Cropper.Stage |
static class |
Img.Filter<FILTER extends Img.Filter<FILTER,STAGE>,STAGE extends Img.ProcessorStage<STAGE,FILTER>> |
static class |
Img.Flip |
static class |
Img.Flip.Stage |
static class |
Img.NoiseMaker |
static class |
Img.NoiseMaker.Stage |
static class |
Img.Processor<PROCESSOR extends Img.Processor<PROCESSOR,STAGE>,STAGE extends Img.ProcessorStage<STAGE,PROCESSOR>>
Base class for image operator function which provides source width, height, ratio parameters on demand
|
static class |
Img.ProcessorStage<STAGE extends Img.ProcessorStage<STAGE,PROCESSOR>,PROCESSOR extends Img.Processor<PROCESSOR,STAGE>> |
static class |
Img.Resizer
Resize an image
|
static class |
Img.Resizer.Stage |
static class |
Img.TextWriter |
static class |
Img.TextWriter.Stage |
static class |
S.Val |
static class |
S.Var |
| Constructor and Description |
|---|
ProcessorStage(Lang.Func0<BufferedImage> source,
PROCESSOR processor)
Construct a ProcessorBuilder with an image source provider
|
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.