- java.lang.Object
-
- com.io7m.jspiel.api.RiffSize.Builder
-
- Enclosing class:
- RiffSize
public static final class RiffSize.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RiffSizebuild()Builds a newRiffSize.RiffSize.Builderfrom(RiffSizeType instance)Fill a builder with attribute values from the providedRiffSizeTypeinstance.RiffSize.BuildersetPadded(boolean padded)Initializes the value for thepaddedattribute.RiffSize.BuildersetSize(long size)Initializes the value for thesizeattribute.
-
-
-
Method Detail
-
from
public final RiffSize.Builder from(RiffSizeType instance)
Fill a builder with attribute values from the providedRiffSizeTypeinstance. 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:
thisbuilder for use in a chained invocation
-
setSize
public final RiffSize.Builder setSize(long size)
Initializes the value for thesizeattribute.- Parameters:
size- The value for size- Returns:
thisbuilder for use in a chained invocation
-
setPadded
public final RiffSize.Builder setPadded(boolean padded)
Initializes the value for thepaddedattribute.- Parameters:
padded- The value for padded- Returns:
thisbuilder for use in a chained invocation
-
-