Enum Class DisplayType

java.lang.Object
java.lang.Enum<DisplayType>
journeymap.api.v2.client.display.DisplayType
All Implemented Interfaces:
Serializable, Comparable<DisplayType>, Constable

public enum DisplayType extends Enum<DisplayType>
Enum of display types which are usable in the JourneyMap Client API and the class reference to each one's implementation.
  • Enum Constant Details

  • Method Details

    • values

      public static DisplayType[] 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 DisplayType 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
    • of

      public static DisplayType of(Class<? extends Displayable> implClass)
      Gets the DisplayType corresponding to the implementation class.
      Parameters:
      implClass - the displayable class
      Throws:
      IllegalArgumentException - if it's not a valid implementation class
    • getImplClass

      public Class<? extends Displayable> getImplClass()
      Gets the implementation class for the DisplayType.
      Returns:
      the class