Class StandingContainerResponse
- 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.unions.UnionResponse
-
- com.github.gpluscb.ggjava.entity.object.response.unions.StandingContainerResponse
-
- All Implemented Interfaces:
GGEntity
,GGObject
,GGResponseObject
public class StandingContainerResponse extends UnionResponse
The containing entity that this standing is for
-
-
Constructor Summary
Constructors Constructor Description StandingContainerResponse()
StandingContainerResponse(EventResponse onEvent)
StandingContainerResponse(PhaseGroupResponse onPhaseGroup)
StandingContainerResponse(SetResponse onSet)
StandingContainerResponse(TournamentResponse onTournament)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventResponse
getEvent()
The event or null if this is not an eventPhaseGroupResponse
getPhaseGroup()
The phase group or null if this is not a phase groupSetResponse
getSet()
The set or null if this is not a setTournamentResponse
getTournament()
The tournament or null if this is not a tournamentStandingContainerResponse
onEvent(java.util.function.Consumer<EventResponse> consumer)
The consumer is executed only if this is an eventStandingContainerResponse
onPhaseGroup(java.util.function.Consumer<PhaseGroupResponse> consumer)
The consumer is executed if this is a phase groupStandingContainerResponse
onSet(java.util.function.Consumer<SetResponse> consumer)
The consumer is executed if this is a setStandingContainerResponse
onTournament(java.util.function.Consumer<TournamentResponse> consumer)
The consumer is executed only if this is a tournamentstatic java.lang.Class<? extends GGResponseObject>
typeForTypename(java.lang.String __typename)
-
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
-
StandingContainerResponse
public StandingContainerResponse()
-
StandingContainerResponse
public StandingContainerResponse(@Nonnull TournamentResponse onTournament)
-
StandingContainerResponse
public StandingContainerResponse(@Nonnull EventResponse onEvent)
-
StandingContainerResponse
public StandingContainerResponse(@Nonnull PhaseGroupResponse onPhaseGroup)
-
StandingContainerResponse
public StandingContainerResponse(@Nonnull SetResponse onSet)
-
-
Method Detail
-
typeForTypename
public static java.lang.Class<? extends GGResponseObject> typeForTypename(@Nonnull java.lang.String __typename) throws java.lang.IllegalArgumentException
- Throws:
java.lang.IllegalArgumentException
-
onTournament
@Nonnull public StandingContainerResponse onTournament(@Nonnull java.util.function.Consumer<TournamentResponse> consumer)
The consumer is executed only if this is a tournament- Returns:
- itself for chaining
-
onEvent
@Nonnull public StandingContainerResponse onEvent(@Nonnull java.util.function.Consumer<EventResponse> consumer)
The consumer is executed only if this is an event- Returns:
- itself for chaining
-
onPhaseGroup
@Nonnull public StandingContainerResponse onPhaseGroup(@Nonnull java.util.function.Consumer<PhaseGroupResponse> consumer)
The consumer is executed if this is a phase group- Returns:
- itself for chaining
-
onSet
@Nonnull public StandingContainerResponse onSet(@Nonnull java.util.function.Consumer<SetResponse> consumer)
The consumer is executed if this is a set- Returns:
- itself for chaining
-
getTournament
@Nullable public TournamentResponse getTournament()
The tournament or null if this is not a tournament
-
getEvent
@Nullable public EventResponse getEvent()
The event or null if this is not an event
-
getPhaseGroup
@Nullable public PhaseGroupResponse getPhaseGroup()
The phase group or null if this is not a phase group
-
getSet
@Nullable public SetResponse getSet()
The set or null if this is not a set
-
-