Enum Class Wearing

Object
Enum<Wearing>
Wearing
All Implemented Interfaces:
Serializable, Comparable<Wearing>, Constable

public enum Wearing extends Enum<Wearing>
Different position on the body that can wear clothes of some kind.
  • Enum Constant Details

    • ON_HEAD

      public static final Wearing ON_HEAD
    • ON_NECK

      public static final Wearing ON_NECK
    • ON_TORSO

      public static final Wearing ON_TORSO
    • ON_ARMS

      public static final Wearing ON_ARMS
    • ON_LEFT_WRIST

      public static final Wearing ON_LEFT_WRIST
    • ON_RIGHT_WRIST

      public static final Wearing ON_RIGHT_WRIST
    • ON_LEFT_FINGER

      public static final Wearing ON_LEFT_FINGER
    • ON_RIGHT_FINGER

      public static final Wearing ON_RIGHT_FINGER
    • ON_FEET

      public static final Wearing ON_FEET
    • ON_HANDS

      public static final Wearing ON_HANDS
    • FLOATING_NEARBY

      public static final Wearing FLOATING_NEARBY
    • ON_WAIST

      public static final Wearing ON_WAIST
    • ON_LEGS

      public static final Wearing ON_LEGS
    • ON_EYES

      public static final Wearing ON_EYES
    • ON_EARS

      public static final Wearing ON_EARS
    • ABOUT_BODY

      public static final Wearing ABOUT_BODY
  • Method Details

    • values

      public static Wearing[] 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 Wearing 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
    • get

      public static Wearing get(int aVal)
      Recreates the constants from an integer. An integer value of 0 causes a null pointer to be returned.
      Parameters:
      aVal - the integer corresponding to the constant.
      Returns:
      the constant object
      Throws:
      RuntimeException - in case the integer provided does not correspond to any of the available objects.
    • parse

      public static Wearing parse(String aVal)
      Provides some parsing, a string is translated to the enum in question. For example "neck" will return Wearing.NECK;
      Parameters:
      aVal - the string to be parsed
      Returns:
      the constant object. Will return null, if a faulty aval is provided that does not map to any of the enums.
    • isIn

      public static boolean isIn(Integer aVal, Wearing aPos)
      Receives an integer and checks to see that the Wearing is a part of it.
      Parameters:
      aVal - the integer corresponding to a number of Wearings
      aPos - the Wearing for which to check.
      Returns:
      boolean, true if the integer contains the Wearing.
    • toString

      public String toString()
      Returns the name of the format.
      Overrides:
      toString in class Enum<Wearing>
      Returns:
      format name.
    • toInt

      public int toInt()
      Returns the numerical representation of the format.
      Returns:
      identification integer.
    • returnWearings

      public static Set<Wearing> returnWearings(Integer aVal)
      Receives an integer and returns a list of Wieldings to correspond.
      Parameters:
      aVal - the integer corresponding to a number of Wieldings
      Returns:
      a List of Wieldings.
    • returnValue

      public static Integer returnValue(String set)
      Parameters:
      set - for example "ON_TORSO, ON_NECK".
      Returns:
      Integer representation