public final class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static Properties |
PROPERTIES |
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends T> |
align(Class<T> clazz,
Iterable<E> objects1,
Iterable<E> objects2,
boolean functional,
boolean invFunctional,
boolean emitUnaligned,
BiFunction<? super E,? super E,?> matcher) |
static String |
cleanIRI(String string)
Clean an illegal IRI string, trying to make it legal (as per RFC 3987).
|
static void |
closeVFS(Path rootPath) |
static double |
coverage(Iterable<?> covered,
Iterable<?> covering) |
static void |
deleteRecursively(Path path) |
static List<Path> |
fileMatch(Iterable<Path> filesOrDirs,
Iterable<String> extensions,
boolean recursive) |
static List<Path> |
fileMatch(Iterable<Path> filesOrDirs,
Iterable<String> extensions,
boolean recursive,
boolean indirect) |
static Function<String,String> |
fileRenamer(String fromPath,
String toPath,
String toExtension,
boolean junkPaths) |
static String[] |
hardTokenize(String text) |
static <T> T[] |
newArray(Class<T> clazz,
int length) |
static <T> T[][] |
newArray(Class<T> clazz,
int length1,
int length2) |
static <T> T[] |
newArray(Class<T> clazz,
Object... elements) |
static Path |
openVFS(Path rootPath,
boolean clean) |
static Properties |
parseProperties(String string) |
public static final Properties PROPERTIES
public static Properties parseProperties(String string)
public static void deleteRecursively(Path path) throws IOException
IOExceptionpublic static Path openVFS(Path rootPath, boolean clean) throws IOException
IOExceptionpublic static void closeVFS(Path rootPath) throws IOException
IOExceptionpublic static Function<String,String> fileRenamer(String fromPath, String toPath, @Nullable String toExtension, boolean junkPaths)
@Nullable public static List<Path> fileMatch(@Nullable Iterable<Path> filesOrDirs, @Nullable Iterable<String> extensions, boolean recursive)
@Nullable public static List<Path> fileMatch(@Nullable Iterable<Path> filesOrDirs, @Nullable Iterable<String> extensions, boolean recursive, boolean indirect) throws IOException
IOExceptionpublic static <T> T[] newArray(Class<T> clazz, int length)
public static <T> T[][] newArray(Class<T> clazz, int length1, int length2)
@Nullable public static String cleanIRI(@Nullable String string) throws IllegalArgumentException
string - the IRI string to cleanIllegalArgumentException - in case the supplied input cannot be transformed into a legal IRIpublic static double coverage(@Nullable Iterable<?> covered, @Nullable Iterable<?> covering)
public static <T,E extends T> T[][] align(Class<T> clazz, Iterable<E> objects1, Iterable<E> objects2, boolean functional, boolean invFunctional, boolean emitUnaligned, BiFunction<? super E,? super E,?> matcher)
Copyright © 2016–2018 FBK. All rights reserved.