org.crsh.cli.impl.lang
Class Util
java.lang.Object
org.crsh.cli.impl.lang.Util
-
public class Util
- extends Object
-
Constructor Summary |
Util()
|
Method Summary |
private static String |
_tab(int size)
|
static
|
indent(int tab, CharSequence s, A appendable)
|
static
|
indent(String tab, CharSequence s, A appendable)
|
static
<T> Iterable<? extends T> |
|
join(Iterable<? extends T>... iterables)
|
(package private) static String |
tab(int size)
|
static
|
tuples(Class<T> type, Iterable<? extends T>... iterables)
|
static
|
wrap(T object)
Wrap an object with an Instance . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_ARGS
static final Object[] EMPTY_ARGS
-
.
INDENT_PATTERN
static final Pattern INDENT_PATTERN
-
.
MAN_TAB
public static final String MAN_TAB
-
.
MAN_TAB_EXTRA
public static final String MAN_TAB_EXTRA
-
.
tabIndex
static final String[] tabIndex
-
.
Util
public Util()
tab
static String tab(int size)
-
_tab
private static String _tab(int size)
-
indent
public static <A extends Appendable> A indent(int tab,
CharSequence s,
A appendable)
throws IOException
-
- Throws:
IOException
indent
public static <A extends Appendable> A indent(String tab,
CharSequence s,
A appendable)
throws IOException
-
- Throws:
IOException
tuples
public static <T> Iterable<T[]> tuples(Class<T> type,
Iterable<? extends T>... iterables)
-
join
public static <T> Iterable<? extends T> join(Iterable<? extends T>... iterables)
-
wrap
public static <T> Instance<T> wrap(T object)
-
Wrap an object with an
Instance
.
-
- Type Parameters:
T
- the instance generic type
- Parameters:
object
- the object to wrap
- Returns:
- an
Instance
wrapping the specified object
Copyright © 2015 eXo Platform SAS. All Rights Reserved.