-
- All Implemented Interfaces:
public final class SchemaUtilsTODO.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSchemaUtils.ThrowingFunctionFunction that may throw an exception.
-
Field Summary
Fields Modifier and Type Field Description public static StringprojectGroup
-
Method Summary
Modifier and Type Method Description static synchronized StringgetProjectGroup()TODO. static StringexpandClass(String classShorthand)Expand a class name with the group name if it starts with a dot. static StringsnakeToCamelCase(String value)Converts given file name from snake_case to CamelCase. static <T, R> Function<T, Stream<R>>applyOrEmpty(SchemaUtils.ThrowingFunction<T, Stream<R>> func)Apply a throwing function, and if it throws, log it and let it return an empty Stream. static <T, R> Function<T, Stream<R>>applyOrIllegalException(SchemaUtils.ThrowingFunction<T, Stream<R>> func)Apply a throwing function, and if it throws, log it and let it return an empty Stream. -
-
Method Detail
-
getProjectGroup
static synchronized String getProjectGroup()
TODO.
-
expandClass
static String expandClass(String classShorthand)
Expand a class name with the group name if it starts with a dot.
- Parameters:
classShorthand- class name, possibly starting with a dot as a shorthand.
-
snakeToCamelCase
static String snakeToCamelCase(String value)
Converts given file name from snake_case to CamelCase. This will cause underscores to be removed, and the next character to be uppercase. This only converts the value up to the first dot encountered.
- Parameters:
value- file name in snake_case
-
applyOrEmpty
static <T, R> Function<T, Stream<R>> applyOrEmpty(SchemaUtils.ThrowingFunction<T, Stream<R>> func)
Apply a throwing function, and if it throws, log it and let it return an empty Stream.
-
applyOrIllegalException
static <T, R> Function<T, Stream<R>> applyOrIllegalException(SchemaUtils.ThrowingFunction<T, Stream<R>> func)
Apply a throwing function, and if it throws, log it and let it return an empty Stream.
-
-
-
-