Enum Class Pages

java.lang.Object
java.lang.Enum<Pages>
com.jbstrap.core.cache.Pages
All Implemented Interfaces:
Serializable, Comparable<Pages>, Constable

public enum Pages extends Enum<Pages>
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • INSTANCE

      public static final Pages INSTANCE
  • Method Details

    • values

      public static Pages[] 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 Pages 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
    • add

      public void add(NavigationPoint navigationPoint)
      Parameters:
      navigationPoint - The new navigation point
      Throws:
      NullPointerException - If the specified new navigation point's ID is null
    • get

      public NavigationPoint get(String pageId)
      Parameters:
      pageId - The id of the navigation point
      Returns:
      The navigation point or null, if not found
      Throws:
      NullPointerException - If the specified id is null
    • remove

      public void remove(String pageId)
      Parameters:
      pageId - The id of the navigation point that needs to be removed
    • isExists

      public boolean isExists(String pageId)
      Parameters:
      pageId - The page id
      Returns:
      If true, there's a navigation point with the specified id in the cache, otherwise false