Class ScalarResponse<T>
- 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.scalars.ScalarResponse<T>
-
- All Implemented Interfaces:
GGEntity,GGObject,GGResponseObject
- Direct Known Subclasses:
BooleanResponse,FloatResponse,IDResponse,IntResponse,JSONResponse,StringResponse,TimestampResponse
public abstract class ScalarResponse<T> extends AbstractGGResponseObject
-
-
Constructor Summary
Constructors Constructor Description ScalarResponse(EntityType type)ScalarResponse(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
-
ScalarResponse
public ScalarResponse(@Nonnull EntityType type, @Nonnull T value)
-
ScalarResponse
public ScalarResponse(@Nonnull EntityType type)
-
-
Method Detail
-
getValue
@Nonnull public T getValue()
- Throws:
java.lang.IllegalStateException- if this is not provided
-
-