Package com.io7m.jwheatsheaf.api
Class JWFileListingFailed
java.lang.Object
com.io7m.jwheatsheaf.api.JWFileListingFailed
- All Implemented Interfaces:
JWFileChooserEventType,JWFileChooserEventType.JWFileChooserEventErrorType,JWFileChooserEventType.JWFileListingFailedType
public final class JWFileListingFailed
extends Object
implements JWFileChooserEventType.JWFileListingFailedType
An error occurred whilst trying to list a directory.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeJWFileListingFailed.Nested classes/interfaces inherited from interface com.io7m.jwheatsheaf.api.JWFileChooserEventType
JWFileChooserEventType.JWDirectoryCreationFailedType, JWFileChooserEventType.JWFileChooserEventErrorType, JWFileChooserEventType.JWFileListingFailedType -
Method Summary
Modifier and TypeMethodDescriptionstatic JWFileListingFailed.Builderbuilder()Creates a builder forJWFileListingFailed.static JWFileListingFailedCreates an immutable copy of aJWFileChooserEventType.JWFileListingFailedTypevalue.booleanThis instance is equal to all instances ofJWFileListingFailedthat have equal attribute values.inthashCode()Computes a hash code from attributes:path,exception.static JWFileListingFailedConstruct a new immutableJWFileListingFailedinstance.path()toString()Prints the immutable valueJWFileListingFailedwith attribute values.final JWFileListingFailedwithException(Exception value) Copy the current immutable object by setting a value for theexceptionattribute.final JWFileListingFailedCopy the current immutable object by setting a value for thepathattribute.
-
Method Details
-
path
- Specified by:
pathin interfaceJWFileChooserEventType.JWFileChooserEventErrorType- Specified by:
pathin interfaceJWFileChooserEventType.JWFileListingFailedType- Returns:
- The directory that could not be listed
-
exception
- Specified by:
exceptionin interfaceJWFileChooserEventType.JWFileChooserEventErrorType- Specified by:
exceptionin interfaceJWFileChooserEventType.JWFileListingFailedType- Returns:
- The exception
-
withPath
Copy the current immutable object by setting a value for thepathattribute. 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
thisobject
-
withException
Copy the current immutable object by setting a value for theexceptionattribute. 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
thisobject
-
equals
This instance is equal to all instances ofJWFileListingFailedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:path,exception. -
toString
Prints the immutable valueJWFileListingFailedwith attribute values. -
of
Construct a new immutableJWFileListingFailedinstance.- Parameters:
path- The value for thepathattributeexception- The value for theexceptionattribute- Returns:
- An immutable JWFileListingFailed instance
-
copyOf
Creates an immutable copy of aJWFileChooserEventType.JWFileListingFailedTypevalue. 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 JWFileListingFailed instance
-
builder
Creates a builder forJWFileListingFailed.JWFileListingFailed.builder() .setPath(java.nio.file.Path) // requiredpath.setException(Exception) // requiredexception.build();- Returns:
- A new JWFileListingFailed builder
-