Skip navigation links
com.auxiliary.tool.common.enums

Enum OrientationType

    • Method Detail

      • values

        public static OrientationType[] 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 (OrientationType c : OrientationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static OrientationType valueOf(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getCode

        public int getCode()
        该方法用于返回枚举的编码
        Returns:
        枚举编码
        Since:
        autest 3.7.0
      • valueOf

        public OrientationType valueOf(int code)
        该方法用于根据枚举编码,判断与之相同编码的枚举,并进行返回。若未找到相同的枚举,则返回null
        Parameters:
        code - 枚举编码
        Returns:
        相应编码的枚举
        Since:
        autest 3.7.0

Copyright © 2024. All rights reserved.