Package nz.org.riskscape.engine.types
Class Struct.StructBuilder
java.lang.Object
nz.org.riskscape.engine.types.Struct.StructBuilder
- Enclosing class:
- Struct
Builder class for constructing struct types with a fluid api
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StructBuilder
public StructBuilder() -
StructBuilder
public StructBuilder(int expectedSize)
-
-
Method Details
-
and
Deprecated.use add -
add
-
addAll
-
buildOr
Variation of build that returns a ResultOrProblems that can be used in user error reporting, rather than throwing an exception (on key duplicates)
- Returns:
- ResultOrProblems
-
build
Finish defining a struct
- Returns:
- the struct that has been defined.
-
isEmpty
public boolean isEmpty() -
size
public int size()
-