Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl3.internal
Class SetBuilder

    java.lang.Object
      org.apache.commons.jexl3.internal.SetBuilder

All Implemented Interfaces:
  JexlArithmetic.SetBuilder

    public class SetBuilder

extends Object
implements JexlArithmetic.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

### set

    protected final Set<Object> set

  The set being created.

Constructor Detail

### SetBuilder

    public SetBuilder(int size)

  Creates a new builder.

  Parameters:
    `size` - the expected set size

Method Detail

### add

    public void add(Object value)

  Description copied from interface: `JexlArithmetic.SetBuilder`
  Adds a literal to the set.

  Specified by:
    `add` in interface `JexlArithmetic.SetBuilder`
  Parameters:
    `value` - the item to add

### create

    public Object create()

  Description copied from interface: `JexlArithmetic.SetBuilder`
  Creates the actual "set" instance.

  Specified by:
    `create` in interface `JexlArithmetic.SetBuilder`
  Returns:
    the set

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001–2017 The Apache Software Foundation. All rights reserved.