|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.util.Literal
public class Literal
Utility class that makes it easy to construct Collection literals, and also provides a nicer syntax for creating array literals.
Constructor Summary | |
---|---|
Literal()
|
Method Summary | ||
---|---|---|
static boolean[] |
array(boolean... elements)
Returns an array containing all the elements supplied. |
|
static byte[] |
array(byte... elements)
Returns an array containing all the elements supplied. |
|
static char[] |
array(char... elements)
Returns an array containing all the elements supplied. |
|
static double[] |
array(double... elements)
Returns an array containing all the elements supplied. |
|
static float[] |
array(float... elements)
Returns an array containing all the elements supplied. |
|
static int[] |
array(int... elements)
Returns an array containing all the elements supplied. |
|
static long[] |
array(long... elements)
Returns an array containing all the elements supplied. |
|
static short[] |
array(short... elements)
Returns an array containing all the elements supplied. |
|
static
|
array(T... elements)
Returns an array containing all the elements supplied. |
|
static
|
list(T... elements)
Returns a new List instance containing the supplied elements. |
|
static
|
set(T... elements)
Returns a new Set instance containing the supplied elements. |
|
static
|
sortedSet(T... elements)
Returns a new SortedSet instance containing the supplied elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Literal()
Method Detail |
---|
public static <T> T[] array(T... elements)
public static boolean[] array(boolean... elements)
public static byte[] array(byte... elements)
public static char[] array(char... elements)
public static short[] array(short... elements)
public static int[] array(int... elements)
public static long[] array(long... elements)
public static float[] array(float... elements)
public static double[] array(double... elements)
public static <T> List<T> list(T... elements)
public static <T> Set<T> set(T... elements)
public static <T extends Comparable<?>> SortedSet<T> sortedSet(T... elements)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |