Class EnumResponse<T extends GGEnum>
- java.lang.Object
-
- com.github.gpluscb.ggjava.entity.AbstractGGEntity
-
- com.github.gpluscb.ggjava.entity.object.AbstractGGObject
-
- com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
-
- com.github.gpluscb.ggjava.entity.object.response.enums.EnumResponse<T>
-
- All Implemented Interfaces:
GGEntity,GGObject,GGResponseObject
- Direct Known Subclasses:
ActivityStateResponse,AuthorizationTypeResponse,BracketTypeResponse,ComparatorResponse,GameSelectionTypeResponse,MatchConfigVerificationMethodResponse,RaceLimitModeResponse,RaceTypeResponse,SetSortTypeResponse,StreamSourceResponse,StreamTypeResponse,TeamMemberStatusResponse,TeamMemberTypeResponse,TeamTypeResponse,TournamentPaginationSortResponse
public abstract class EnumResponse<T extends GGEnum> extends AbstractGGResponseObject
-
-
Constructor Summary
Constructors Constructor Description EnumResponse(EntityType type)EnumResponse(EntityType type, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetValue()-
Methods inherited from class com.github.gpluscb.ggjava.entity.object.response.AbstractGGResponseObject
checkProvided, isProvided
-
Methods inherited from class com.github.gpluscb.ggjava.entity.AbstractGGEntity
getGGEntityType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.gpluscb.ggjava.entity.GGEntity
getGGEntityType
-
-
-
-
Constructor Detail
-
EnumResponse
public EnumResponse(@Nonnull EntityType type)
-
EnumResponse
public EnumResponse(@Nonnull EntityType type, @Nonnull T value) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException- if response is null
-
-
Method Detail
-
getValue
@Nonnull public T getValue() throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException- if this is not provided
-
-