Package com.io7m.jwheatsheaf.ui.internal
Class JWFileChoosersTesting
java.lang.Object
com.io7m.jwheatsheaf.ui.internal.JWFileChoosersTesting
- All Implemented Interfaces:
JWFileChoosersTestingType
Configuration parameters useful for testing this chooser implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeJWFileChoosersTesting
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Creates a builder forJWFileChoosersTesting
.static JWFileChoosersTesting
copyOf
(JWFileChoosersTestingType instance) Creates an immutable copy of aJWFileChoosersTestingType
value.boolean
This instance is equal to all instances ofJWFileChoosersTesting
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:ioDelay
.ioDelay()
toString()
Prints the immutable valueJWFileChoosersTesting
with attribute values.final JWFileChoosersTesting
withIoDelay
(Duration value) Copy the current immutable object by setting a present value for the optionalioDelay
attribute.final JWFileChoosersTesting
withIoDelay
(Optional<? extends Duration> optional) Copy the current immutable object by setting an optional value for theioDelay
attribute.
-
Method Details
-
ioDelay
- Specified by:
ioDelay
in interfaceJWFileChoosersTestingType
- Returns:
- A delay added to I/O operations to test how the UI responds to slow I/O.
-
withIoDelay
Copy the current immutable object by setting a present value for the optionalioDelay
attribute.- Parameters:
value
- The value for ioDelay- Returns:
- A modified copy of
this
object
-
withIoDelay
Copy the current immutable object by setting an optional value for theioDelay
attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis
.- Parameters:
optional
- A value for ioDelay- Returns:
- A modified copy of
this
object
-
equals
This instance is equal to all instances ofJWFileChoosersTesting
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ioDelay
. -
toString
Prints the immutable valueJWFileChoosersTesting
with attribute values. -
copyOf
Creates an immutable copy of aJWFileChoosersTestingType
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 JWFileChoosersTesting instance
-
builder
Creates a builder forJWFileChoosersTesting
.JWFileChoosersTesting.builder() .setIoDelay(java.time.Duration) // optional
ioDelay
.build();- Returns:
- A new JWFileChoosersTesting builder
-