Enum Class Orientation

java.lang.Object
java.lang.Enum<Orientation>
ch.oliumbi.compass.ui.manifest.Orientation
All Implemented Interfaces:
Translatable<String>, Serializable, Comparable<Orientation>, Constable

public enum Orientation extends Enum<Orientation> implements Translatable<String>
experimental https://developer.mozilla.org/en-US/docs/Web/Manifest/orientation
  • Enum Constant Details

    • ANY

      public static final Orientation ANY
    • NATURAL

      public static final Orientation NATURAL
    • LANDSCAPE

      public static final Orientation LANDSCAPE
    • LANDSCAPE_PRIMARY

      public static final Orientation LANDSCAPE_PRIMARY
    • LANDSCAPE_SECONDARY

      public static final Orientation LANDSCAPE_SECONDARY
    • PORTRAIT

      public static final Orientation PORTRAIT
    • PORTRAIT_PRIMARY

      public static final Orientation PORTRAIT_PRIMARY
    • PORTRAIT_SECONDARY

      public static final Orientation PORTRAIT_SECONDARY
  • Field Details

    • LOGGER

      public static final org.slf4j.Logger LOGGER
  • Method Details

    • values

      public static Orientation[] 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 Orientation 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
    • translate

      public String translate()
      Specified by:
      translate in interface Translatable<String>