Class JWDirectoryCreationFailed.Builder

java.lang.Object
com.io7m.jwheatsheaf.api.JWDirectoryCreationFailed.Builder
Enclosing class:
JWDirectoryCreationFailed

public static final class JWDirectoryCreationFailed.Builder
extends java.lang.Object
Builds instances of type JWDirectoryCreationFailed. 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.

  • Method Details

    • from

      Fill a builder with attribute values from the provided com.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileChooserEventErrorType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.io7m.jwheatsheaf.api.JWFileChooserEventType.JWDirectoryCreationFailedType instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setPath

      public final JWDirectoryCreationFailed.Builder setPath​(java.nio.file.Path path)
      Initializes the value for the path attribute.
      Parameters:
      path - The value for path
      Returns:
      this builder for use in a chained invocation
    • setException

      public final JWDirectoryCreationFailed.Builder setException​(java.lang.Exception exception)
      Initializes the value for the exception attribute.
      Parameters:
      exception - The value for exception
      Returns:
      this builder for use in a chained invocation
    • build

      public JWDirectoryCreationFailed build()
      Returns:
      An immutable instance of JWDirectoryCreationFailed
      Throws:
      java.lang.IllegalStateException - if any required attributes are missing