Class OreResponse.Success<T>
- java.lang.Object
-
- org.spongepowered.gradle.ore.internal.OreResponse.Success<T>
-
- All Implemented Interfaces:
OreResponse<T>
- Enclosing interface:
- OreResponse<V>
public static final class OreResponse.Success<T> extends java.lang.Object implements OreResponse<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.gradle.ore.internal.OreResponse
OreResponse.Failure<T>, OreResponse.Reauthenticate<T>, OreResponse.Success<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <E extends java.lang.Throwable>
OreResponse.Success<T>asSuccessOrThrow(java.util.function.Function<java.lang.String,E> errorProvider)
int
responseCode()
T
value()
boolean
wasSuccessful()
-
-
-
Method Detail
-
value
public T value()
-
wasSuccessful
public boolean wasSuccessful()
- Specified by:
wasSuccessful
in interfaceOreResponse<T>
-
responseCode
public int responseCode()
- Specified by:
responseCode
in interfaceOreResponse<T>
-
asSuccessOrThrow
public <E extends java.lang.Throwable> OreResponse.Success<T> asSuccessOrThrow(java.util.function.Function<java.lang.String,E> errorProvider)
- Specified by:
asSuccessOrThrow
in interfaceOreResponse<T>
-
-