|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Optional | |
|---|---|
| org.littleshoot.util | |
| Uses of Optional in org.littleshoot.util |
|---|
| Subinterfaces of Optional in org.littleshoot.util | |
|---|---|
interface |
None<T>
The optional object representing no object. |
interface |
Some<T>
An optional object representing some object, meaning not none. |
| Classes in org.littleshoot.util that implement Optional | |
|---|---|
class |
NoneImpl<T>
An implementation of the None interface. |
class |
SomeImpl<T>
An implementation of the Some interface. |
| Methods in org.littleshoot.util that return Optional | ||
|---|---|---|
Optional<ServerT> |
ConnectionMaintainerImpl.getMostRecentlyActive()
|
|
Optional<T> |
ConnectionMaintainer.getMostRecentlyActive()
Returns the most recently active server. |
|
Optional |
OptionalUtilsImpl.optionalOf(Object object)
Returns an Optional from a possible null
object. |
|
Optional |
OptionalUtils.optionalOf(Object object)
Returns an Optional from a possible null
object. |
|
|
OptionalUtilsImpl.transformSome(Optional<T1> optional,
Transformer<T1,T2> transformer)
Returns an Optional object created by transforming the
contents of another Optional object. |
|
|
OptionalUtils.transformSome(Optional<T1> optional,
Transformer<T1,T2> transformer)
Returns an Optional object created by transforming the
contents of another Optional object. |
|
| Methods in org.littleshoot.util with parameters of type Optional | ||
|---|---|---|
|
OptionalUtilsImpl.executeOnSome(Optional<T> optional,
Closure<T> closure)
Executes a given closure on an optional object. |
|
|
OptionalUtils.executeOnSome(Optional<T> optional,
Closure<T> closure)
Executes a given closure on an optional object. |
|
|
OptionalUtilsImpl.isNone(Optional<T> optional)
Returns whether an optional object is a None object. |
|
|
OptionalUtils.isNone(Optional<T> optional)
Returns whether an optional object is a None object. |
|
boolean |
OptionalUtilsImpl.isSome(Optional optional)
Returns whether an optional object is a Some object. |
|
boolean |
OptionalUtils.isSome(Optional optional)
Returns whether an optional object is a Some object. |
|
|
OptionalUtilsImpl.someObject(Optional<T> optional)
Returns the object stored in an optional object if one exists. |
|
|
OptionalUtils.someObject(Optional<T> optional)
Returns the object stored in an optional object if one exists. |
|
|
OptionalUtilsImpl.transformSome(Optional<T1> optional,
Transformer<T1,T2> transformer)
Returns an Optional object created by transforming the
contents of another Optional object. |
|
|
OptionalUtils.transformSome(Optional<T1> optional,
Transformer<T1,T2> transformer)
Returns an Optional object created by transforming the
contents of another Optional object. |
|
| Method parameters in org.littleshoot.util with type arguments of type Optional | ||
|---|---|---|
|
OptionalUtilsImpl.filterNones(Collection<Optional<T>> c)
Filters out the None elements in a collection and returns a
collection of the objects inside the remaining Some
elements. |
|
|
OptionalUtils.filterNones(Collection<Optional<T>> c)
Filters out the None elements in a collection and returns a
collection of the objects inside the remaining Some
elements. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||