public final class Brief extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsWildcards(String pattern)
|
static Collection<File> |
glob(File parent,
String... globs)
A
null parent is equivalent with new File("."), except that the elements of the result have
a null parent. |
static void |
print(Object subject,
de.unkrig.commons.lang.protocol.Consumer<Object> destination)
Maps the subject to zero, one or more subjects, and lets the destination consume these.
|
static void |
print(Object subject,
PrintStream ps)
Implements the "jsh standard way" of printing objects.
|
static void |
print(Object subject,
PrintWriter pw)
Implements the "jsh standard way" of printing objects.
|
static boolean |
wildmatch(String pattern,
String text)
Implements "wildcard matching". "?"
|
public static void print(@Nullable
Object subject,
PrintWriter pw)
null subject results in nothing being printed.Object.toString(), and then printed in one line.public static void print(@Nullable
Object subject,
PrintStream ps)
null subject results in nothing being printed.Collection subject results in one line being printed per collection element.
Set subject results in one line being printed per entry, in the form "key=value".
Object.toString(), and then printed in one line.
public static void print(@Nullable
Object subject,
de.unkrig.commons.lang.protocol.Consumer<Object> destination)
null subject results in zero destination subjects.Collection subject results in one destination subject per collection element.Set subject results in one destination subject per entry, in the form "key=value".
public static Collection<File> glob(@Nullable File parent, String... globs)
null parent is equivalent with new File("."), except that the elements of the result have
a null parent.wildmatch(String, String)public static boolean wildmatch(@Nullable
String pattern,
String text)
public static boolean containsWildcards(@Nullable
String pattern)
Copyright © 2016. All rights reserved.