Package uk.co.real_logic.sbe.ir
Class Encoding.Builder
java.lang.Object
uk.co.real_logic.sbe.ir.Encoding.Builder
- Enclosing class:
- Encoding
Builder to make
Encoding easier to create.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a new Encoding based on the values.ByteOrder for the Encoding.characterEncoding(String characterEncoding) Character encoding for the Encoding.constValue(PrimitiveValue constValue) Constant value to be used for the Encoding.Epoch value for the Encoding.maxValue(PrimitiveValue maxValue) Maximum value for the Encoding.minValue(PrimitiveValue minValue) Minimum value for the Encoding.nullValue(PrimitiveValue nullValue) Null value for the Encoding.presence(Encoding.Presence presence) Presence for the Encoding.primitiveType(PrimitiveType primitiveType) PrimitiveType for the Encoding.semanticType(String semanticType) Semantic type for the Encoding.Time unit for the Encoding.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
primitiveType
PrimitiveType for the Encoding.- Parameters:
primitiveType- for the Encoding.- Returns:
- this for a fluent API.
-
presence
Presence for the Encoding.- Parameters:
presence- for the Encoding.- Returns:
- this for a fluent API.
-
byteOrder
ByteOrder for the Encoding.- Parameters:
byteOrder- for the Encoding.- Returns:
- this for a fluent API.
-
minValue
Minimum value for the Encoding.- Parameters:
minValue- for the Encoding.- Returns:
- this for a fluent API.
-
maxValue
Maximum value for the Encoding.- Parameters:
maxValue- for the Encoding.- Returns:
- this for a fluent API.
-
nullValue
Null value for the Encoding.- Parameters:
nullValue- for the Encoding.- Returns:
- this for a fluent API.
-
constValue
Constant value to be used for the Encoding.- Parameters:
constValue- for the Encoding.- Returns:
- this for a fluent API.
-
characterEncoding
Character encoding for the Encoding.- Parameters:
characterEncoding- for the Encoding.- Returns:
- this for a fluent API.
-
epoch
Epoch value for the Encoding.- Parameters:
epoch- for the Encoding.- Returns:
- this for a fluent API.
-
timeUnit
Time unit for the Encoding.- Parameters:
timeUnit- for the Encoding.- Returns:
- this for a fluent API.
-
semanticType
Semantic type for the Encoding.- Parameters:
semanticType- for the Encoding.- Returns:
- this for a fluent API.
-
build
Build a new Encoding based on the values.- Returns:
- a new Encoding based on the values.
-