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.ObjectBuilds instances of typeSMFMemoryMeshFilterCheckConfiguration. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis 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 providedSMFMemoryMeshFilterCheckConfigurationTypeinstance. 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
-
setName
public final SMFMemoryMeshFilterCheckConfiguration.Builder setName(SMFAttributeName name)
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
setComponentType
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentType(SMFComponentType componentType)
Initializes the optional valuecomponentTypeto componentType.- Parameters:
componentType- The value for componentType- Returns:
thisbuilder for chained invocation
-
setComponentType
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentType(java.util.Optional<? extends SMFComponentType> componentType)
Initializes the optional valuecomponentTypeto componentType.- Parameters:
componentType- The value for componentType- Returns:
thisbuilder for use in a chained invocation
-
setComponentCount
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentCount(int componentCount)
Initializes the optional valuecomponentCountto componentCount.- Parameters:
componentCount- The value for componentCount- Returns:
thisbuilder for chained invocation
-
setComponentCount
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentCount(java.util.OptionalInt componentCount)
Initializes the optional valuecomponentCountto componentCount.- Parameters:
componentCount- The value for componentCount- Returns:
thisbuilder for use in a chained invocation
-
setComponentSize
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentSize(int componentSize)
Initializes the optional valuecomponentSizeto componentSize.- Parameters:
componentSize- The value for componentSize- Returns:
thisbuilder for chained invocation
-
setComponentSize
public final SMFMemoryMeshFilterCheckConfiguration.Builder setComponentSize(java.util.OptionalInt componentSize)
Initializes the optional valuecomponentSizeto componentSize.- Parameters:
componentSize- The value for componentSize- Returns:
thisbuilder 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
-
-