Package com.github.twitch4j.common.enums
Class TwitchEnum<E extends Enum<E>>
java.lang.Object
com.github.twitch4j.common.enums.TwitchEnum<E>
- Type Parameters:
E
- the underlying enum type
Wrapper for a Twitch-specified enum where all of the possible values may not be documented.
-
Constructor Summary
ConstructorDescriptionTwitchEnum
(E value, @NotNull String rawValue) Creates a newTwitchEnum
instance. -
Method Summary
-
Constructor Details
-
TwitchEnum
Creates a newTwitchEnum
instance.- Parameters:
value
- The parsed enum value.rawValue
- The raw string provided by Twitch to represent this enum.This field is useful when
getValue()
yieldsUNKNOWN
. Please report such cases to our issue tracker.
-
-
Method Details
-
getValue
The parsed enum value. -
getRawValue
The raw string provided by Twitch to represent this enum.This field is useful when
getValue()
yieldsUNKNOWN
. Please report such cases to our issue tracker. -
equals
-
hashCode
public int hashCode() -
toString
-