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 classBuilds instances of typeJWFileChoosersTesting. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forJWFileChoosersTesting.static JWFileChoosersTestingcopyOf(JWFileChoosersTestingType instance) Creates an immutable copy of aJWFileChoosersTestingTypevalue.booleanThis instance is equal to all instances ofJWFileChoosersTestingthat have equal attribute values.inthashCode()Computes a hash code from attributes:ioDelay.ioDelay()toString()Prints the immutable valueJWFileChoosersTestingwith attribute values.final JWFileChoosersTestingwithIoDelay(Duration value) Copy the current immutable object by setting a present value for the optionalioDelayattribute.final JWFileChoosersTestingwithIoDelay(Optional<? extends Duration> optional) Copy the current immutable object by setting an optional value for theioDelayattribute.
-
Method Details
-
ioDelay
- Specified by:
ioDelayin 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 optionalioDelayattribute.- Parameters:
value- The value for ioDelay- Returns:
- A modified copy of
thisobject
-
withIoDelay
Copy the current immutable object by setting an optional value for theioDelayattribute. 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
thisobject
-
equals
This instance is equal to all instances ofJWFileChoosersTestingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:ioDelay. -
toString
Prints the immutable valueJWFileChoosersTestingwith attribute values. -
copyOf
Creates an immutable copy of aJWFileChoosersTestingTypevalue. 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) // optionalioDelay.build();- Returns:
- A new JWFileChoosersTesting builder
-