class TransitiveOptional[T] extends AnyRef
A container object which may or may not contain a non-null value. It supports chaining through
An example of using TransitiveOptional class for method chaining where every method
returns TransitiveOptional instance. In this chain, the next step will be executed ONLY
if the previous one returned an empty TransitiveOptional
return getSnapshotFromCheckpoint(checkpointSnapshotVersion)
.or(this::getSnapshotFromStartingVersionOption)
.or(this::getSnapshotFromStartingTimestampOption)
.or(this::getHeadSnapshot)
.get();
- Alphabetic
- By Inheritance
- TransitiveOptional
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get(): T
If a value is present, returns the value, otherwise throws
NoSuchElementException.If a value is present, returns the value, otherwise throws
NoSuchElementException.- returns
the non-
nullvalue described by thisTransitiveOptional
- Exceptions thrown
NoSuchElementExceptionif no value is present
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
or(supplier: Supplier[_ <: TransitiveOptional[_ <: T]]): TransitiveOptional[T]
If a value is present, returns an
TransitiveOptionaldescribing the value, otherwise returns anTransitiveOptionalproduced by the supplying function.If a value is present, returns an
TransitiveOptionaldescribing the value, otherwise returns anTransitiveOptionalproduced by the supplying function.- supplier
the supplying function that produces an
TransitiveOptionalto be returned- returns
returns an
TransitiveOptionaldescribing the value of thisTransitiveOptional, if a value is present, otherwise anTransitiveOptionalproduced by the supplying function.
- Exceptions thrown
NullPointerExceptionif the supplying function isnullor produces anullresult
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()