Enum EnumFacing.Axis

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      X  
      Y  
      Z  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(EnumFacing enumfacing)
      Returns the result of applying this predicate to input.
      static EnumFacing.Axis byName​(java.lang.String name)
      + Get the facing specified by the given name
      java.lang.String getName()  
      java.lang.String getName2()
      + Same as getName, but does not override the method from Enum.
      EnumFacing.Plane getPlane()  
      boolean isHorizontal()  
      boolean isVertical()  
      java.lang.String toString()  
      static EnumFacing.Axis valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EnumFacing.Axis[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static EnumFacing.Axis[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EnumFacing.Axis c : EnumFacing.Axis.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EnumFacing.Axis valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • byName

        public static EnumFacing.Axis byName​(java.lang.String name)
        + Get the facing specified by the given name
      • getName2

        public java.lang.String getName2()
        + Same as getName, but does not override the method from Enum.
      • isVertical

        public boolean isVertical()
      • isHorizontal

        public boolean isHorizontal()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<EnumFacing.Axis>
      • apply

        public boolean apply​(EnumFacing enumfacing)
        Description copied from interface: Predicate
        Returns the result of applying this predicate to input. This method is generally expected, but not absolutely required, to have the following properties:
        • Its execution does not cause any observable side effects.
        • The computation is consistent with equals; that is, Objects.equal(a, b) implies that predicate.apply(a) == predicate.apply(b)).
        Specified by:
        apply in interface Predicate<EnumFacing>