|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.SetBuilder
public class SetBuilder
Helper class to create set literals.
Field Summary | |
---|---|
protected Set<Object> |
set
The set being created. |
Constructor Summary | |
---|---|
SetBuilder(int size)
Creates a new builder. |
Method Summary | |
---|---|
void |
add(Object value)
Adds a literal to the set. |
Object |
create()
Creates the actual "set" instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Set<Object> set
Constructor Detail |
---|
public SetBuilder(int size)
size
- the expected set sizeMethod Detail |
---|
public void add(Object value)
JexlArithmetic.SetBuilder
add
in interface JexlArithmetic.SetBuilder
value
- the item to addpublic Object create()
JexlArithmetic.SetBuilder
create
in interface JexlArithmetic.SetBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |