Package com.io7m.jwheatsheaf.api
Class JWDirectoryCreationFailed
java.lang.Object
com.io7m.jwheatsheaf.api.JWDirectoryCreationFailed
- All Implemented Interfaces:
JWFileChooserEventType
,JWFileChooserEventType.JWDirectoryCreationFailedType
,JWFileChooserEventType.JWFileChooserEventErrorType
public final class JWDirectoryCreationFailed
extends Object
implements JWFileChooserEventType.JWDirectoryCreationFailedType
An error occurred whilst trying to create a directory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeJWDirectoryCreationFailed
.Nested classes/interfaces inherited from interface com.io7m.jwheatsheaf.api.JWFileChooserEventType
JWFileChooserEventType.JWDirectoryCreationFailedType, JWFileChooserEventType.JWFileChooserEventErrorType, JWFileChooserEventType.JWFileListingFailedType
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forJWDirectoryCreationFailed
.static JWDirectoryCreationFailed
Creates an immutable copy of aJWFileChooserEventType.JWDirectoryCreationFailedType
value.boolean
This instance is equal to all instances ofJWDirectoryCreationFailed
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:path
,exception
.static JWDirectoryCreationFailed
Construct a new immutableJWDirectoryCreationFailed
instance.path()
toString()
Prints the immutable valueJWDirectoryCreationFailed
with attribute values.withException
(Exception value) Copy the current immutable object by setting a value for theexception
attribute.Copy the current immutable object by setting a value for thepath
attribute.
-
Method Details
-
path
- Specified by:
path
in interfaceJWFileChooserEventType.JWDirectoryCreationFailedType
- Specified by:
path
in interfaceJWFileChooserEventType.JWFileChooserEventErrorType
- Returns:
- The directory that could not be created
-
exception
- Specified by:
exception
in interfaceJWFileChooserEventType.JWDirectoryCreationFailedType
- Specified by:
exception
in interfaceJWFileChooserEventType.JWFileChooserEventErrorType
- Returns:
- The exception
-
withPath
Copy the current immutable object by setting a value for thepath
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for path- Returns:
- A modified copy of the
this
object
-
withException
Copy the current immutable object by setting a value for theexception
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for exception- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofJWDirectoryCreationFailed
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:path
,exception
. -
toString
Prints the immutable valueJWDirectoryCreationFailed
with attribute values. -
of
Construct a new immutableJWDirectoryCreationFailed
instance.- Parameters:
path
- The value for thepath
attributeexception
- The value for theexception
attribute- Returns:
- An immutable JWDirectoryCreationFailed instance
-
copyOf
public static JWDirectoryCreationFailed copyOf(JWFileChooserEventType.JWDirectoryCreationFailedType instance) Creates an immutable copy of aJWFileChooserEventType.JWDirectoryCreationFailedType
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable JWDirectoryCreationFailed instance
-
builder
Creates a builder forJWDirectoryCreationFailed
.JWDirectoryCreationFailed.builder() .setPath(java.nio.file.Path) // required
path
.setException(Exception) // requiredexception
.build();- Returns:
- A new JWDirectoryCreationFailed builder
-