Enum Class ELeftRight

java.lang.Object
java.lang.Enum<ELeftRight>
com.helger.base.state.ELeftRight
All Implemented Interfaces:
ILeftRightIndicator, Serializable, Comparable<ELeftRight>, Constable

public enum ELeftRight extends Enum<ELeftRight> implements ILeftRightIndicator
Small enum for left and right
Author:
Philip Helger
  • Enum Constant Details

  • Method Details

    • values

      public static ELeftRight[] 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 ELeftRight 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
    • isLeft

      public boolean isLeft()
      Specified by:
      isLeft in interface ILeftRightIndicator
      Returns:
      true if left and false if right.
    • valueOf

      public static @NonNull ELeftRight valueOf(@NonNull ILeftRightIndicator aLeftRightIndicator)
      Convert an ILeftRightIndicator to the corresponding ELeftRight enum value.
      Parameters:
      aLeftRightIndicator - The left/right indicator to convert. May not be null.
      Returns:
      Never null.