-
public final class SpecExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static TypedDestinationSpec<?>startDestinationprivate final static List<TypedDestinationSpec<?>>allDestinationsprivate final static List<TypedRoute<?>>allRoutes
-
Method Summary
Modifier and Type Method Description final TypedDestinationSpec<?>getStartDestination()final List<TypedDestinationSpec<?>>getAllDestinations()final List<TypedRoute<?>>getAllRoutes()final static List<TypedDestinationSpec<?>>filterDestinations(TypedNavGraphSpec<?, ?> $self, Function1<TypedDestinationSpec<?>, Boolean> predicate)Filters all destinations of this NavGraphSpec and its nested nav graphs with given predicate final static BooleananyDestination(TypedNavGraphSpec<?, ?> $self, Function1<TypedDestinationSpec<?>, Boolean> predicate)Checks if any destination of this NavGraphSpec matches with given predicate final static Booleancontains(TypedNavGraphSpec<?, ?> $self, TypedDestinationSpec<?> destination)Checks if this NavGraphSpec contains given destination final static TypedDestinationSpec<?>findDestination(TypedNavGraphSpec<?, ?> $self, String route)Finds a destination for a routein this navigation graph or its nested graphs.-
-
Method Detail
-
getStartDestination
final TypedDestinationSpec<?> getStartDestination()
-
getAllDestinations
final List<TypedDestinationSpec<?>> getAllDestinations()
-
getAllRoutes
final List<TypedRoute<?>> getAllRoutes()
-
filterDestinations
final static List<TypedDestinationSpec<?>> filterDestinations(TypedNavGraphSpec<?, ?> $self, Function1<TypedDestinationSpec<?>, Boolean> predicate)
Filters all destinations of this NavGraphSpec and its nested nav graphs with given predicate
-
anyDestination
final static Boolean anyDestination(TypedNavGraphSpec<?, ?> $self, Function1<TypedDestinationSpec<?>, Boolean> predicate)
Checks if any destination of this NavGraphSpec matches with given predicate
-
contains
final static Boolean contains(TypedNavGraphSpec<?, ?> $self, TypedDestinationSpec<?> destination)
Checks if this NavGraphSpec contains given destination
-
findDestination
final static TypedDestinationSpec<?> findDestination(TypedNavGraphSpec<?, ?> $self, String route)
Finds a destination for a
routein this navigation graph or its nested graphs. Returnsnullif there is no such destination.
-
-
-
-