Enum MaxTpsDTO.ProductionTimeUnitEnum
- java.lang.Object
-
- java.lang.Enum<MaxTpsDTO.ProductionTimeUnitEnum>
-
- org.wso2.am.integration.clients.publisher.api.v1.dto.MaxTpsDTO.ProductionTimeUnitEnum
-
- All Implemented Interfaces:
Serializable,Comparable<MaxTpsDTO.ProductionTimeUnitEnum>
- Enclosing class:
- MaxTpsDTO
public static enum MaxTpsDTO.ProductionTimeUnitEnum extends Enum<MaxTpsDTO.ProductionTimeUnitEnum>
Time unit for the production.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMaxTpsDTO.ProductionTimeUnitEnum.Adapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MaxTpsDTO.ProductionTimeUnitEnumfromValue(String value)StringgetValue()StringtoString()static MaxTpsDTO.ProductionTimeUnitEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static MaxTpsDTO.ProductionTimeUnitEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECOND
public static final MaxTpsDTO.ProductionTimeUnitEnum SECOND
-
MINUTE
public static final MaxTpsDTO.ProductionTimeUnitEnum MINUTE
-
HOUR
public static final MaxTpsDTO.ProductionTimeUnitEnum HOUR
-
-
Method Detail
-
values
public static MaxTpsDTO.ProductionTimeUnitEnum[] 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 (MaxTpsDTO.ProductionTimeUnitEnum c : MaxTpsDTO.ProductionTimeUnitEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MaxTpsDTO.ProductionTimeUnitEnum 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 nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<MaxTpsDTO.ProductionTimeUnitEnum>
-
fromValue
public static MaxTpsDTO.ProductionTimeUnitEnum fromValue(String value)
-
-