Skip to content

Type Interfaces : Visitable

johnmcclean-aol edited this page Nov 22, 2016 · 1 revision

The Visitable interface

A Visitable represents a Value that can be non-null or null and allows clients to visit those states.

In cyclops-react it has the following methods

  • visit : allows users to visit present and null states

Example

String visited = Maybe.just(10)
                      .visit(some->"present",()->"null");
     

Implementations

CompletableFutureTValue, Convertable.SupplierToConvertable, Eval.Module.Always, Eval.Module.Later, EvalTValue, FeatureToggle.Disabled, FeatureToggle.Enabled, FutureW, FutureWTValue, Ior.Both, Ior.Primary, Ior.Secondary, LazyImmutable, Maybe.Just, Maybe.Lazy, Maybe.Nothing, MaybeTValue, Mutable, MutableBoolean, MutableByte, MutableChar, MutableDouble, MutableFloat, MutableInt, MutableLong, MutableShort, OptionalTValue, Try.Failure, Try.Success, TryTValue, Value.ValueImpl, ValueSubscriber, Xor.Primary, Xor.Secondary, XorTValue

Clone this wiki locally