Package com.io7m.jwheatsheaf.api
Class JWDirectoryCreationFailed.Builder
- java.lang.Object
-
- com.io7m.jwheatsheaf.api.JWDirectoryCreationFailed.Builder
-
- Enclosing class:
- JWDirectoryCreationFailed
public static final class JWDirectoryCreationFailed.Builder extends java.lang.ObjectBuilds instances of typeJWDirectoryCreationFailed. 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JWDirectoryCreationFailedbuild()Builds a newJWDirectoryCreationFailed.JWDirectoryCreationFailed.Builderfrom(JWFileChooserEventType.JWDirectoryCreationFailedType instance)Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWDirectoryCreationFailedTypeinstance.JWDirectoryCreationFailed.Builderfrom(JWFileChooserEventType.JWFileChooserEventErrorType instance)Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileChooserEventErrorTypeinstance.JWDirectoryCreationFailed.BuildersetException(java.lang.Exception exception)Initializes the value for theexceptionattribute.JWDirectoryCreationFailed.BuildersetPath(java.nio.file.Path path)Initializes the value for thepathattribute.
-
-
-
Method Detail
-
from
public final JWDirectoryCreationFailed.Builder from(JWFileChooserEventType.JWFileChooserEventErrorType instance)
Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileChooserEventErrorTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final JWDirectoryCreationFailed.Builder from(JWFileChooserEventType.JWDirectoryCreationFailedType instance)
Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWDirectoryCreationFailedTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setPath
public final JWDirectoryCreationFailed.Builder setPath(java.nio.file.Path path)
Initializes the value for thepathattribute.- Parameters:
path- The value for path- Returns:
thisbuilder for use in a chained invocation
-
setException
public final JWDirectoryCreationFailed.Builder setException(java.lang.Exception exception)
Initializes the value for theexceptionattribute.- Parameters:
exception- The value for exception- Returns:
thisbuilder for use in a chained invocation
-
build
public JWDirectoryCreationFailed build()
Builds a newJWDirectoryCreationFailed.- Returns:
- An immutable instance of JWDirectoryCreationFailed
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-
-