Package com.io7m.smfj.processing.main
Class SMFMemoryMeshFilterCheckConfiguration.Builder
- java.lang.Object
-
- com.io7m.smfj.processing.main.SMFMemoryMeshFilterCheckConfiguration.Builder
-
- Enclosing class:
- SMFMemoryMeshFilterCheckConfiguration
public static final class SMFMemoryMeshFilterCheckConfiguration.Builder extends java.lang.Object
Builds instances of typeSMFMemoryMeshFilterCheckConfiguration
. Initialize attributes and then invoke thebuild()
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.
-
-
Method Summary
-
-
-
Method Detail
-
from
public final SMFMemoryMeshFilterCheckConfiguration.Builder from(SMFMemoryMeshFilterCheckConfigurationType instance)
Fill a builder with attribute values from the providedSMFMemoryMeshFilterCheckConfigurationType
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
-
setName
public final SMFMemoryMeshFilterCheckConfiguration.Builder setName(SMFAttributeName name)
Initializes the value for thename
attribute.- Parameters:
name
- The value for name- Returns:
this
builder for use in a chained invocation
-
setComponentType
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentType(SMFComponentType componentType)
Initializes the optional valuecomponentType
to componentType.- Parameters:
componentType
- The value for componentType- Returns:
this
builder for chained invocation
-
setComponentType
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentType(java.util.Optional<? extends SMFComponentType> componentType)
Initializes the optional valuecomponentType
to componentType.- Parameters:
componentType
- The value for componentType- Returns:
this
builder for use in a chained invocation
-
setComponentCount
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentCount(int componentCount)
Initializes the optional valuecomponentCount
to componentCount.- Parameters:
componentCount
- The value for componentCount- Returns:
this
builder for chained invocation
-
setComponentCount
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentCount(java.util.OptionalInt componentCount)
Initializes the optional valuecomponentCount
to componentCount.- Parameters:
componentCount
- The value for componentCount- Returns:
this
builder for use in a chained invocation
-
setComponentSize
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentSize(int componentSize)
Initializes the optional valuecomponentSize
to componentSize.- Parameters:
componentSize
- The value for componentSize- Returns:
this
builder for chained invocation
-
setComponentSize
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentSize(java.util.OptionalInt componentSize)
Initializes the optional valuecomponentSize
to componentSize.- Parameters:
componentSize
- The value for componentSize- Returns:
this
builder for use in a chained invocation
-
build
public SMFMemoryMeshFilterCheckConfiguration build()
Builds a newSMFMemoryMeshFilterCheckConfiguration
.- Returns:
- An immutable instance of SMFMemoryMeshFilterCheckConfiguration
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
-