1
for nonempty Option's and 0
for empty.Executor
instance.Executors.newCachedThreadPool(ThreadFactory)
.Executors.newFixedThreadPool(int,ThreadFactory)
None
since it anyways cannot represent a state.Unit
.Executable
sometime in the future.Callable
sometime in the future.Executable
sometime in the future.Callable
sometime in the future.Executor
for Executors.getDefault()
.Executor
instances.false
.true
if this option is nonempty and the predicate p returns true
when applied to this Option's value.true
if the predicate matches the value.Failure
with an UnsupportedOperationException
.Success
.Promise
with an exception.Try
.Failure
wrapping the provided throwable.Future
that will filter the successful value of this instance once it is completed.true
.Failure
.false
.Future
that will hold the mapped successful value of this instance once it is completed.this
.Some
.Try
generated by the function.func_left
to the wrapped value and returns the result.func_right
to the wrapped value and returns the result.true
if the Option is nonempty and the predicate holds true
, else false
.Future
into a non-blocking future.Future
into a non-blocking future.Future
that will hold the value once this Promise is completed.Future
.Throwable
this instance represents.NoSuchElementException
since None cannot per definition hold any value.NoSuchElementException
is raised.Left
else the value provided by the supplier.Right
else the value provided by the supplier.0
as None is stateless and has no value.Promise
have been completed, with a value or an exception.false
.true
.false
.true
.LeftProjection
for this instance.Left
.Either
.Future
that will hold the mapped successful value of this instance once it is completed.this
.Some
.Option
containing the value of applying the given function to the current value.Try
representing the mapped value.Option
.None
.null
if it is empty.Success
, else null
.Promise
.Failure
and returns the result.null
and and throws IllegalArgumentException
if it is.null
and throws a customized IllegalArgumentException
if it is.RightProjection
for this instance.Right
.Either
.Some
.Option
holding a value.Promise
with a value.Try
.Success
wrapping the provided value.Right
containing the value for this instance.Left
containing the value for this instance.Right
containing the value from the provided supplier.Left
containing the value of this instance.Left
containing the value from the provided supplier.Right
containing the value of this instance.Future
that will hold the transformed successful value of this instance once it is completed.Try
wrapping the result of the provided function.Promise
with an exception.Promise
with a value.Copyright © 2016, Peter Nerg Apache License v2.0