Enum ProjectRole
- java.lang.Object
-
- java.lang.Enum<ProjectRole>
-
- com.epam.ta.reportportal.entity.project.ProjectRole
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ProjectRole>
public enum ProjectRole extends java.lang.Enum<ProjectRole> implements java.lang.Comparable<ProjectRole>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOMERMEMBEROPERATORPROJECT_MANAGER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ProjectRole>forName(java.lang.String name)booleanhigherThan(ProjectRole other)booleanlowerThan(ProjectRole other)booleansameOrHigherThan(ProjectRole other)booleansameOrLowerThan(ProjectRole other)static ProjectRolevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProjectRole[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPERATOR
public static final ProjectRole OPERATOR
-
CUSTOMER
public static final ProjectRole CUSTOMER
-
MEMBER
public static final ProjectRole MEMBER
-
PROJECT_MANAGER
public static final ProjectRole PROJECT_MANAGER
-
-
Method Detail
-
values
public static ProjectRole[] 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 (ProjectRole c : ProjectRole.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProjectRole 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 namejava.lang.NullPointerException- if the argument is null
-
higherThan
public boolean higherThan(ProjectRole other)
-
lowerThan
public boolean lowerThan(ProjectRole other)
-
sameOrHigherThan
public boolean sameOrHigherThan(ProjectRole other)
-
sameOrLowerThan
public boolean sameOrLowerThan(ProjectRole other)
-
forName
public static java.util.Optional<ProjectRole> forName(java.lang.String name)
-
-