Package ratpack.func
Class Utils
- java.lang.Object
-
- ratpack.func.Utils
-
public class Utils extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEVELOPMENT_PROPERTY
static String
GROOVY_MAIN
static String
INTELLIJ_JUNIT
static String
INTELLIJ_MAIN
static String
SUN_JAVA_COMMAND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
get(T defaultValue, Predicate<? super T> accept, Supplier<T>... suppliers)
static boolean
isDebuggerAttached()
static boolean
isDevelopment()
-
-
-
Field Detail
-
DEVELOPMENT_PROPERTY
public static final String DEVELOPMENT_PROPERTY
- See Also:
- Constant Field Values
-
INTELLIJ_MAIN
public static final String INTELLIJ_MAIN
- See Also:
- Constant Field Values
-
INTELLIJ_JUNIT
public static final String INTELLIJ_JUNIT
- See Also:
- Constant Field Values
-
GROOVY_MAIN
public static final String GROOVY_MAIN
- See Also:
- Constant Field Values
-
SUN_JAVA_COMMAND
public static final String SUN_JAVA_COMMAND
- See Also:
- Constant Field Values
-
-
Method Detail
-
isDevelopment
public static boolean isDevelopment()
-
get
@SafeVarargs public static <T> T get(T defaultValue, Predicate<? super T> accept, Supplier<T>... suppliers)
-
isDebuggerAttached
public static boolean isDebuggerAttached()
-
-