Class JsonResult<T>
java.lang.Object
com.github.cyanbaz.jenkins.plugins.jsonparameter.JsonResult<T>
- Type Parameters:
T
- The type of the value.
A generic result container used to wrap the outcome of loading JSON data.
Includes a success flag, the result value (if successful), and an optional error message.
- Author:
- Caner Yanbaz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> JsonResult<T>
getValue()
boolean
static <T> JsonResult<T>
success
(T value)
-
Constructor Details
-
JsonResult
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
getValue
-
getErrorMessage
-
success
-
failure
-