org.crsh.cli.impl.lang
Class Util

java.lang.Object
  extended by org.crsh.cli.impl.lang.Util

public class Util
extends Object


Field Summary
(package private) static Object[] EMPTY_ARGS
          .
(package private) static Pattern INDENT_PATTERN
          .
static String MAN_TAB
          .
static String MAN_TAB_EXTRA
          .
(package private) static String[] tabIndex
          .
 
Constructor Summary
Util()
           
 
Method Summary
private static String _tab(int size)
           
static
<A extends Appendable>
A
indent(int tab, CharSequence s, A appendable)
           
static
<A extends Appendable>
A
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
<T> Iterable<T[]>
tuples(Class<T> type, Iterable<? extends T>... iterables)
           
static
<T> Instance<T>
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
 

Field Detail

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
.

Constructor Detail

Util

public Util()
Method Detail

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.