Package com.plannaplan.types
Enum GroupType
java.lang.Object
java.lang.Enum<GroupType>
com.plannaplan.types.GroupType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GroupType>
,java.lang.constant.Constable
public enum GroupType extends java.lang.Enum<GroupType>
GroupType contains types: LECTURE, CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
type
-
Method Summary
Modifier and Type Method Description static GroupType
getType(java.lang.String type)
static GroupType
isLectureOrClass(GroupType type)
static GroupType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GroupType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
type
public final java.lang.String type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getType
- Parameters:
type
- as string- Returns:
- Enum converted from provided string
-
isLectureOrClass
- Parameters:
type
- group type to check- Returns:
- general convertion to bring down tours to two generals LECTURE and CLASS. To class are included: CLASS, LAB, SEMINAR, CONSERVATORY, PRATICE.
-