Enum Class SubseaTree.PressureRating
- All Implemented Interfaces:
Serializable, Comparable<SubseaTree.PressureRating>, Constable
- Enclosing class:
SubseaTree
Pressure rating class per API 17D.
- Version:
- 1.0
- Author:
- ESOL
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBar()Get pressure in bar.intgetPsi()Get pressure in psi.static SubseaTree.PressureRatingReturns the enum constant of this class with the specified name.static SubseaTree.PressureRating[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PR5000
5000 psi (345 bar). -
PR10000
10000 psi (690 bar). -
PR15000
15000 psi (1034 bar). -
PR20000
20000 psi (1379 bar).
-
-
Field Details
-
psi
private final int psi -
bar
private final int bar
-
-
Constructor Details
-
PressureRating
private PressureRating(int psi, int bar)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getPsi
public int getPsi()Get pressure in psi.- Returns:
- pressure in psi
-
getBar
public int getBar()Get pressure in bar.- Returns:
- pressure in bar
-