Package com.io7m.jwheatsheaf.api
Class JWFileListingFailed.Builder
java.lang.Object
com.io7m.jwheatsheaf.api.JWFileListingFailed.Builder
- Enclosing class:
- JWFileListingFailed
Builds instances of type
JWFileListingFailed.
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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newJWFileListingFailed.Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileChooserEventErrorTypeinstance.Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileListingFailedTypeinstance.setException(Exception exception) Initializes the value for theexceptionattribute.Initializes the value for thepathattribute.
-
Method Details
-
from
public final JWFileListingFailed.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 JWFileListingFailed.Builder from(JWFileChooserEventType.JWFileListingFailedType instance) Fill a builder with attribute values from the providedcom.io7m.jwheatsheaf.api.JWFileChooserEventType.JWFileListingFailedTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setPath
Initializes the value for thepathattribute.- Parameters:
path- The value for path- Returns:
thisbuilder for use in a chained invocation
-
setException
Initializes the value for theexceptionattribute.- Parameters:
exception- The value for exception- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newJWFileListingFailed.- Returns:
- An immutable instance of JWFileListingFailed
- Throws:
IllegalStateException- if any required attributes are missing
-