java.io.Serializable
ResponseAction
, ResponseAvailableMaps
, ResponseCreateGame
, ResponseData
, ResponseDebug
, ResponseError
, ResponseGameInfo
, ResponseJoinGame
, ResponseLeaveGame
, ResponseObservation
, ResponseObserverAction
, ResponsePing
, ResponseQuery
, ResponseQuickLoad
, ResponseQuickSave
, ResponseQuitGame
, ResponseReplayInfo
, ResponseRestartGame
, ResponseSaveMap
, ResponseSaveReplay
, ResponseStartReplay
, ResponseStep
public abstract class Response
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method | Description |
---|---|---|
<T extends Response> |
as(java.lang.Class<T> clazz) |
|
boolean |
canEqual(java.lang.Object other) |
|
boolean |
equals(java.lang.Object o) |
|
long |
getNanoTime() |
|
GameStatus |
getStatus() |
|
ResponseType |
getType() |
|
int |
hashCode() |
|
boolean |
is(ResponseType responseType) |
|
static <T extends Response> |
is(java.lang.Class<T> clazz) |
|
boolean |
isNot(ResponseType responseType) |
|
static <T extends Response> |
isNot(java.lang.Class<T> clazz) |
|
java.lang.String |
toString() |
public ResponseType getType()
public GameStatus getStatus()
public long getNanoTime()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean canEqual(java.lang.Object other)
public <T extends Response> java.util.Optional<T> as(java.lang.Class<T> clazz)
public static <T extends Response> java.util.function.Predicate<Response> is(java.lang.Class<T> clazz)
public static <T extends Response> java.util.function.Predicate<Response> isNot(java.lang.Class<T> clazz)
public boolean is(ResponseType responseType)
public boolean isNot(ResponseType responseType)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017–2018 Ocraft Project. All rights reserved.