public class Results extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getValueOrThrow(Result<T> result,
String template)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
boolean a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
boolean a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
boolean a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
boolean a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
boolean a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
int a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
int a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
int a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
int a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
int a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
long a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
long a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
long a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
long a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
long a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object... args)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object a1)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object a1,
boolean a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object a1,
int a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object a1,
long a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
static <T> T |
getValueOrThrow(Result<T> result,
String template,
Object a1,
Object a2)
Extract a value of the result or throws an exception if the result is unsuccessful.
|
@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - the exception message to use if the result is unsuccessfulUnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object... args) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)args - the arguments to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, int a1) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, long a1) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, boolean a1) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object a1) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, int a1, int a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, long a1, int a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, boolean a1, int a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object a1, int a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, int a1, long a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, long a1, long a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, boolean a1, long a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object a1, long a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, int a1, boolean a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, long a1, boolean a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, boolean a1, boolean a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object a1, boolean a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, int a1, Object a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, long a1, Object a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, boolean a1, Object a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessful@Nonnull public static <T> T getValueOrThrow(Result<T> result, String template, Object a1, Object a2) throws UnexpectedResultException
T - type of the valueresult - a resulttemplate - a template for the exception message to use if the result is unsuccessful;
will be converted to a string using String.format(java.lang.String, java.lang.Object...)a1 - the argument to be substituted into the message template.a2 - the argument to be substituted into the message template.UnexpectedResultException - if result is unsuccessfulCopyright © 2024. All rights reserved.