1 for nonempty Option's and 0 for empty.Executors.newCachedThreadPool(ThreadFactory).Executors.newFixedThreadPool(int,ThreadFactory)None since it anyways cannot represent a state.Option.empty()singleton as it anyways cannot represent a value/state.true as None is stateless comparing it to some other None is therefore always the same.Promise,success(T) or failure(Throwable).Executable sometime in the future.Callable sometime in the future.Executable sometime in the future.Callable sometime in the future.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.Promise with an exception.Try.Future that will filter the successful value of this instance once it is completed.true.false.Future that will hold the mapped successful value of this instance once it is completed.thisthis.Some.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.Option.exists(Predicate).Future that will hold the value once this Promise is completed.Throwable provided in the constructor.NoSuchElementException since None cannot 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.Some.Promise have been completed, with a value or an exception.false.true.false.true.LeftProjection for this instance.Either.Future that will hold the mapped successful value of this instance once it is completed.thisthis.Some.Option.Option.empty() but with the difference it provides a more Scala like feeling if the method is statically imported.this.null if it is empty.Success, else null.RightProjection for this instance.Either.Option holding a value.Promise with a value.Try.Right containing the value for this instance.Left containing the value for this instance.Copyright © 2015. All rights reserved.