Top Constructors Methods
org.reactfx.util

pack-priv Class Success<T>

Located in compilation unit of org.reactfx.util.Try.

extends Right<Throwable, T>
implements Try<T>
Class Inheritance
All Implemented Interfaces
org.reactfx.util.Try, org.reactfx.util.Either

Constructor Summary

AccessConstructor and Description
public
Success(T value)

Method Summary

Modifier and TypeMethod and Description
public <U> Try<U>
flatMap(Function<? super T, Try<U>> f)

Implements org.reactfx.util.Try.flatMap.

public T
public T
public <U> Try<U>
map(Function<? super T, ? extends U> f)

Implements org.reactfx.util.Try.map.

public Try<T>
orElse(Try<T> fallback)

Implements org.reactfx.util.Try.orElse.

public Try<T>
public Try<T>
orElseTry(Callable<? extends T> fallback)

Implements org.reactfx.util.Try.orElseTry.

public Try<T>
public String
toString()

Overrides org.reactfx.util.Right.toString.

Returns a string representation of the object.

Inherited from org.reactfx.util.Right:
asLeftasRightequalsexecflatMapflatMapLeftflatMapRightgetLeftgetRighthashCodeifLeftifRightisLeftisRightmapmapLeftmapRighttoLefttoRightunify

Constructor Detail

Successback to summary
public Success(T value)

Method Detail

flatMapback to summary
public <U> Try<U> flatMap(Function<? super T, Try<U>> f)

Implements org.reactfx.util.Try.flatMap.

Annotations
@Override
getOrElseback to summary
public T getOrElse(T fallback)

Implements org.reactfx.util.Try.getOrElse.

Annotations
@Override
getOrElseback to summary
public T getOrElse(Supplier<T> fallback)

Implements org.reactfx.util.Try.getOrElse, org.reactfx.util.Try.getOrElse.

Annotations
@Override
mapback to summary
public <U> Try<U> map(Function<? super T, ? extends U> f)

Implements org.reactfx.util.Try.map.

Annotations
@Override
orElseback to summary
public Try<T> orElse(Try<T> fallback)

Implements org.reactfx.util.Try.orElse.

Annotations
@Override
orElseback to summary
public Try<T> orElse(Supplier<Try<T>> fallback)

Implements org.reactfx.util.Try.orElse.

Annotations
@Override
orElseTryback to summary
public Try<T> orElseTry(Callable<? extends T> fallback)

Implements org.reactfx.util.Try.orElseTry.

Annotations
@Override
recoverback to summary
public Try<T> recover(Function<Throwable, Optional<T>> f)

Implements org.reactfx.util.Try.recover.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.reactfx.util.Right.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override