Package com.io7m.brooklime.api
Class BLProgressFileStarted
java.lang.Object
com.io7m.brooklime.api.BLProgressFileStarted
- All Implemented Interfaces:
BLProgressEventType,BLProgressEventType.BLProgressFileStartedType
public final class BLProgressFileStarted
extends Object
implements BLProgressEventType.BLProgressFileStartedType
Progress started on a particular file.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeBLProgressFileStarted.Nested classes/interfaces inherited from interface com.io7m.brooklime.api.BLProgressEventType
BLProgressEventType.BLProgressFileStartedType, BLProgressEventType.BLProgressUpdateType, BLProgressEventType.Kind -
Method Summary
Modifier and TypeMethodDescriptionintintbuilder()Creates a builder forBLProgressFileStarted.static BLProgressFileStartedCreates an immutable copy of aBLProgressEventType.BLProgressFileStartedTypevalue.booleanThis instance is equal to all instances ofBLProgressFileStartedthat have equal attribute values.intintinthashCode()Computes a hash code from attributes:name,attemptCurrent,attemptMaximum,fileIndexCurrent,fileIndexMaximum.name()toString()Prints the immutable valueBLProgressFileStartedwith attribute values.final BLProgressFileStartedwithAttemptCurrent(int value) Copy the current immutable object by setting a value for theattemptCurrentattribute.final BLProgressFileStartedwithAttemptMaximum(int value) Copy the current immutable object by setting a value for theattemptMaximumattribute.final BLProgressFileStartedwithFileIndexCurrent(int value) Copy the current immutable object by setting a value for thefileIndexCurrentattribute.final BLProgressFileStartedwithFileIndexMaximum(int value) Copy the current immutable object by setting a value for thefileIndexMaximumattribute.final BLProgressFileStartedCopy the current immutable object by setting a value for thenameattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedType
kind
-
Method Details
-
name
- Specified by:
namein interfaceBLProgressEventType- Specified by:
namein interfaceBLProgressEventType.BLProgressFileStartedType- Returns:
- The value of the
nameattribute
-
attemptCurrent
public int attemptCurrent()- Specified by:
attemptCurrentin interfaceBLProgressEventType- Specified by:
attemptCurrentin interfaceBLProgressEventType.BLProgressFileStartedType- Returns:
- The value of the
attemptCurrentattribute
-
attemptMaximum
public int attemptMaximum()- Specified by:
attemptMaximumin interfaceBLProgressEventType- Specified by:
attemptMaximumin interfaceBLProgressEventType.BLProgressFileStartedType- Returns:
- The value of the
attemptMaximumattribute
-
fileIndexCurrent
public int fileIndexCurrent()- Specified by:
fileIndexCurrentin interfaceBLProgressEventType- Specified by:
fileIndexCurrentin interfaceBLProgressEventType.BLProgressFileStartedType- Returns:
- The value of the
fileIndexCurrentattribute
-
fileIndexMaximum
public int fileIndexMaximum()- Specified by:
fileIndexMaximumin interfaceBLProgressEventType- Specified by:
fileIndexMaximumin interfaceBLProgressEventType.BLProgressFileStartedType- Returns:
- The value of the
fileIndexMaximumattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withAttemptCurrent
Copy the current immutable object by setting a value for theattemptCurrentattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attemptCurrent- Returns:
- A modified copy of the
thisobject
-
withAttemptMaximum
Copy the current immutable object by setting a value for theattemptMaximumattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for attemptMaximum- Returns:
- A modified copy of the
thisobject
-
withFileIndexCurrent
Copy the current immutable object by setting a value for thefileIndexCurrentattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fileIndexCurrent- Returns:
- A modified copy of the
thisobject
-
withFileIndexMaximum
Copy the current immutable object by setting a value for thefileIndexMaximumattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fileIndexMaximum- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofBLProgressFileStartedthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,attemptCurrent,attemptMaximum,fileIndexCurrent,fileIndexMaximum. -
toString
Prints the immutable valueBLProgressFileStartedwith attribute values. -
copyOf
Creates an immutable copy of aBLProgressEventType.BLProgressFileStartedTypevalue. 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 BLProgressFileStarted instance
-
builder
Creates a builder forBLProgressFileStarted.BLProgressFileStarted.builder() .setName(String) // requiredname.setAttemptCurrent(int) // requiredattemptCurrent.setAttemptMaximum(int) // requiredattemptMaximum.setFileIndexCurrent(int) // requiredfileIndexCurrent.setFileIndexMaximum(int) // requiredfileIndexMaximum.build();- Returns:
- A new BLProgressFileStarted builder
-