|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.el.functions.Arrays
public final class Arrays
Collection of EL functions for array manipulation.
Method Summary | |
---|---|
static boolean |
contains(java.lang.Object[] array,
java.lang.Object item)
Returns true if the string representation of an item of the given array equals to the string
representation of the given item. |
static java.lang.Object[] |
createArray(int size)
Creates and returns a dummy object array of the given size. |
static java.lang.Integer[] |
createIntegerArray(int begin,
int end)
Creates and an integer array which starts at the given integer and ends at the given integer, inclusive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object[] createArray(int size)
<ui:repeat>
, which doesn't support EL in begin
and end
attributes.
size
- The size of the dummy object array.
java.lang.IllegalArgumentException
- When the size is less than 0.public static java.lang.Integer[] createIntegerArray(int begin, int end)
<f:selectItems>
which shows an integer range to
represent days and years. If the begin is greater than end, then the array will be decremental. If the begin
equals end, then the array will contain only one item.
begin
- The begin integer.
public static boolean contains(java.lang.Object[] array, java.lang.Object item)
true
if the string representation of an item of the given array equals to the string
representation of the given item. This returns false
if either the array or the item is null. This
is useful if you want to for example check if #{paramValues.foo}
contains a certain value.
array
- The array whose items have to be compared.item
- The item to be compared.
true
if the string representation of an item of the given array equals to the string
representation of the given item.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |