AnyLogic
Expand
Font size

@AnyLogicInternalAPI
public class GISResult<T>
extends AbstractGISResult
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
Author:
AnyLogic North America, LLC https://anylogic.com

Nested Class Summary

Nested classes/interfaces inherited from class com.anylogic.engine.gis.AbstractGISResult

AbstractGISResult.Type

Method Summary

Modifier and TypeMethodDescription
static <T> GISResult<T>empty() 
static <T> GISResult<T>error()
network error, or cache entry expired, etc.
GISResultDoubleflatMapToDouble(Function<T,GISResultDouble> mapper) 
Tget() 
GISResultDoublemapToDouble(ToDoubleFunction<T> mapper) 
static <T> GISResult<T>of(T value) 
TorElse(T other)
Returns other object in case of AbstractGISResult.isEmpty() of AbstractGISResult.isError()

Methods inherited from class com.anylogic.engine.gis.AbstractGISResult

isEmpty, isError, isPresent

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

of

public static <T> GISResult<T> of(T value)

empty

public static <T> GISResult<T> empty()

error

public static <T> GISResult<T> error()
network error, or cache entry expired, etc.

get

public T get()

orElse

public T orElse(T other)
Returns other object in case of AbstractGISResult.isEmpty() of AbstractGISResult.isError()

mapToDouble

public GISResultDouble mapToDouble(ToDoubleFunction<T> mapper)

flatMapToDouble

public GISResultDouble flatMapToDouble(Function<T,GISResultDouble> mapper)