Package org.apache.calcite.util
Class ImmutableNullableList.Builder<E>
java.lang.Object
org.apache.calcite.util.ImmutableNullableList.Builder<E>
- Type Parameters:
- E- element type
- Enclosing class:
- ImmutableNullableList<E>
A builder for creating immutable nullable list instances.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionAddselementto theImmutableNullableList.Adds each element ofelementsto theImmutableNullableList.Adds each element ofelementsto theImmutableNullableList.Adds each element ofelementsto theImmutableNullableList.build()Returns a newly-createdImmutableNullableListbased on the contents of theBuilder.
- 
Constructor Details- 
Builderpublic Builder()Creates a new builder. The returned builder is equivalent to the builder generated byImmutableNullableList.builder().
 
- 
- 
Method Details- 
addAddselementto theImmutableNullableList.- Parameters:
- element- the element to add
- Returns:
- this Builderobject
 
- 
addAllAdds each element ofelementsto theImmutableNullableList.- Parameters:
- elements- the- Iterableto add to the- ImmutableNullableList
- Returns:
- this Builderobject
- Throws:
- NullPointerException- if- elementsis null
 
- 
addAdds each element ofelementsto theImmutableNullableList.- Parameters:
- elements- the elements to add to the- ImmutableNullableList
- Returns:
- this Builderobject
- Throws:
- NullPointerException- if- elementsis null
 
- 
addAllAdds each element ofelementsto theImmutableNullableList.- Parameters:
- elements- the elements to add to the- ImmutableNullableList
- Returns:
- this Builderobject
- Throws:
- NullPointerException- if- elementsis null
 
- 
buildReturns a newly-createdImmutableNullableListbased on the contents of theBuilder.
 
-