public static final class CAxisSystem.Builder extends Object
CAxisSystem.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
CAxisSystem |
build()
Builds a new
CAxisSystem. |
CAxisSystem.Builder |
from(CAxisSystemType instance)
Fill a builder with attribute values from the provided
CAxisSystemType instance. |
CAxisSystem.Builder |
setForward(CAxis forward)
Initializes the value for the
forward attribute. |
CAxisSystem.Builder |
setRight(CAxis right)
Initializes the value for the
right attribute. |
CAxisSystem.Builder |
setUp(CAxis up)
Initializes the value for the
up attribute. |
public final CAxisSystem.Builder from(CAxisSystemType instance)
CAxisSystemType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CAxisSystem.Builder setRight(CAxis right)
right attribute.right - The value for rightthis builder for use in a chained invocationpublic final CAxisSystem.Builder setUp(CAxis up)
up attribute.up - The value for upthis builder for use in a chained invocationpublic final CAxisSystem.Builder setForward(CAxis forward)
forward attribute.forward - The value for forwardthis builder for use in a chained invocationpublic CAxisSystem build()
CAxisSystem.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com