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 java.lang.Object implements BLProgressEventType.BLProgressFileStartedType
Immutable implementation ofBLProgressEventType.BLProgressFileStartedType.Use the builder to create immutable instances:
BLProgressFileStarted.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBLProgressFileStarted.BuilderBuilds instances of typeBLProgressFileStarted.-
Nested classes/interfaces inherited from interface com.io7m.brooklime.api.BLProgressEventType
BLProgressEventType.BLProgressFileStartedType, BLProgressEventType.BLProgressUpdateType, BLProgressEventType.Kind
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intattemptCurrent()intattemptMaximum()static BLProgressFileStarted.Builderbuilder()Creates a builder forBLProgressFileStarted.static BLProgressFileStartedcopyOf(BLProgressEventType.BLProgressFileStartedType instance)Creates an immutable copy of aBLProgressEventType.BLProgressFileStartedTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofBLProgressFileStartedthat have equal attribute values.intfileIndexCurrent()intfileIndexMaximum()inthashCode()Computes a hash code from attributes:name,attemptCurrent,attemptMaximum,fileIndexCurrent,fileIndexMaximum.java.lang.Stringname()java.lang.StringtoString()Prints the immutable valueBLProgressFileStartedwith attribute values.BLProgressFileStartedwithAttemptCurrent(int value)Copy the current immutable object by setting a value for theattemptCurrentattribute.BLProgressFileStartedwithAttemptMaximum(int value)Copy the current immutable object by setting a value for theattemptMaximumattribute.BLProgressFileStartedwithFileIndexCurrent(int value)Copy the current immutable object by setting a value for thefileIndexCurrentattribute.BLProgressFileStartedwithFileIndexMaximum(int value)Copy the current immutable object by setting a value for thefileIndexMaximumattribute.BLProgressFileStartedwithName(java.lang.String value)Copy the current immutable object by setting a value for thenameattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.brooklime.api.BLProgressEventType.BLProgressFileStartedType
kind
-
-
-
-
Method Detail
-
name
public java.lang.String 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
public final BLProgressFileStarted withName(java.lang.String value)
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
public final BLProgressFileStarted withAttemptCurrent(int value)
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
public final BLProgressFileStarted withAttemptMaximum(int value)
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
public final BLProgressFileStarted withFileIndexCurrent(int value)
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
public final BLProgressFileStarted withFileIndexMaximum(int value)
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
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofBLProgressFileStartedthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:name,attemptCurrent,attemptMaximum,fileIndexCurrent,fileIndexMaximum.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueBLProgressFileStartedwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static BLProgressFileStarted copyOf(BLProgressEventType.BLProgressFileStartedType instance)
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
public static BLProgressFileStarted.Builder 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
-
-