Enum Class NavigateEvent.NavigationType

java.lang.Object
java.lang.Enum<NavigateEvent.NavigationType>
no.ntnu.principes.event.navigation.NavigateEvent.NavigationType
All Implemented Interfaces:
Serializable, Comparable<NavigateEvent.NavigationType>, Constable
Enclosing class:
NavigateEvent

public static enum NavigateEvent.NavigationType extends Enum<NavigateEvent.NavigationType>
Defines the types of navigation actions available within the application. Used to classify and determine the navigation behavior during route transitions.
  • PUSH: Adds a new route to the navigation stack.
  • REPLACE: Replaces the current route with a new one without adding to the stack.
  • POP: Removes the last route from the navigation stack or navigates back.

This enum facilitates consistent handling of navigation operations in the application.

  • Enum Constant Details

  • Method Details

    • values

      public static NavigateEvent.NavigationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NavigateEvent.NavigationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null