Package | Description |
---|---|
org.jooby | |
org.jooby.util |
Modifier and Type | Method and Description |
---|---|
default <T> Optional<T> |
Env.ifMode(String name,
ExSupplier<T> fn)
Runs the callback function if the current env matches the given name.
|
default <T> Switch<String,T> |
Env.when(String name,
ExSupplier<T> fn)
|
Modifier and Type | Method and Description |
---|---|
Switch<In,Out> |
Switch.when(In value,
ExSupplier<Out> fn)
Append a new option.
|
Switch<In,Out> |
Switch.when(Predicate<In> predicate,
ExSupplier<Out> fn)
Append a new option.
|
Copyright © 2016. All rights reserved.