Package com.io7m.jspiel.api
Class RiffSize.Builder
java.lang.Object
com.io7m.jspiel.api.RiffSize.Builder
- Enclosing class:
- RiffSize
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newRiffSize
.final RiffSize.Builder
from
(RiffSizeType instance) Fill a builder with attribute values from the providedRiffSizeType
instance.final RiffSize.Builder
setPadded
(boolean padded) Initializes the value for thepadded
attribute.final RiffSize.Builder
setSize
(long size) Initializes the value for thesize
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedRiffSizeType
instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setSize
Initializes the value for thesize
attribute.- Parameters:
size
- The value for size- Returns:
this
builder for use in a chained invocation
-
setPadded
Initializes the value for thepadded
attribute.- Parameters:
padded
- The value for padded- Returns:
this
builder for use in a chained invocation
-
build
Builds a newRiffSize
.- Returns:
- An immutable instance of RiffSize
- Throws:
IllegalStateException
- if any required attributes are missing
-