Class NilBuilder
- Object
-
- NilBuilder
-
- All Implemented Interfaces:
Builder<NilExpression>
public class NilBuilder extends Object implements Builder<NilExpression>
-
-
Constructor Summary
Constructors Constructor Description NilBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NilExpression
build()
Created object, may be null if unset()Builder<NilExpression>
reset()
Configure the Builder to produce a default result.Builder<NilExpression>
reset(NilExpression original)
Configure the Builder to produce a copy of the provided original.Builder<NilExpression>
unset()
Configure the Builder to producenull
.
-
-
-
Method Detail
-
build
public NilExpression build()
Description copied from interface:Builder
Created object, may be null if unset()- Specified by:
build
in interfaceBuilder<NilExpression>
- Returns:
- Created object may be null if unset()
-
reset
public Builder<NilExpression> reset()
Description copied from interface:Builder
Configure the Builder to produce a default result.- Specified by:
reset
in interfaceBuilder<NilExpression>
- Returns:
- Builder configured to produce a default result.
-
reset
public Builder<NilExpression> reset(NilExpression original)
Description copied from interface:Builder
Configure the Builder to produce a copy of the provided original.- Specified by:
reset
in interfaceBuilder<NilExpression>
- Parameters:
original
- Original, if null this will behave the same as unset()- Returns:
- Builder configured to produce the provided original
-
unset
public Builder<NilExpression> unset()
Description copied from interface:Builder
Configure the Builder to producenull
.This method allows a Builder to be used as a placeholder; in its unset state the build() method will produce
null
. If any of the builder methods are used the builder will produce a result.- Specified by:
unset
in interfaceBuilder<NilExpression>
- Returns:
- Builder configured to build
null
-
-