Package com.io7m.coffeepick.api
Class CoffeePickInventoryEventRuntimeLoadFailed
- java.lang.Object
-
- com.io7m.coffeepick.api.CoffeePickInventoryEventRuntimeLoadFailed
-
- All Implemented Interfaces:
CoffeePickEventType,CoffeePickInventoryEventRuntimeLoadFailedType,CoffeePickInventoryEventType
public final class CoffeePickInventoryEventRuntimeLoadFailed extends java.lang.Object implements CoffeePickInventoryEventRuntimeLoadFailedType
A runtime could not be loaded.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoffeePickInventoryEventRuntimeLoadFailed.BuilderBuilds instances of typeCoffeePickInventoryEventRuntimeLoadFailed.-
Nested classes/interfaces inherited from interface com.io7m.coffeepick.api.CoffeePickEventType
CoffeePickEventType.Severity
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CoffeePickInventoryEventRuntimeLoadFailed.Builderbuilder()Creates a builder forCoffeePickInventoryEventRuntimeLoadFailed.static CoffeePickInventoryEventRuntimeLoadFailedcopyOf(CoffeePickInventoryEventRuntimeLoadFailedType instance)Creates an immutable copy of aCoffeePickInventoryEventRuntimeLoadFailedTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofCoffeePickInventoryEventRuntimeLoadFailedthat have equal attribute values.java.lang.Exceptionexception()inthashCode()Computes a hash code from attributes:id,exception.java.lang.Stringid()static CoffeePickInventoryEventRuntimeLoadFailedof(java.lang.String id, java.lang.Exception exception)Construct a new immutableCoffeePickInventoryEventRuntimeLoadFailedinstance.java.lang.StringtoString()Prints the immutable valueCoffeePickInventoryEventRuntimeLoadFailedwith attribute values.CoffeePickInventoryEventRuntimeLoadFailedwithException(java.lang.Exception value)Copy the current immutable object by setting a value for theexceptionattribute.CoffeePickInventoryEventRuntimeLoadFailedwithId(java.lang.String value)Copy the current immutable object by setting a value for theidattribute.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.io7m.coffeepick.api.CoffeePickInventoryEventRuntimeLoadFailedType
severity
-
-
-
-
Method Detail
-
id
public java.lang.String id()
- Specified by:
idin interfaceCoffeePickInventoryEventRuntimeLoadFailedType- Returns:
- The ID of the runtime
-
exception
public java.lang.Exception exception()
- Specified by:
exceptionin interfaceCoffeePickInventoryEventRuntimeLoadFailedType- Returns:
- The exception
-
withId
public final CoffeePickInventoryEventRuntimeLoadFailed withId(java.lang.String value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
withException
public final CoffeePickInventoryEventRuntimeLoadFailed withException(java.lang.Exception value)
Copy the current immutable object by setting a value for theexceptionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for exception- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)
This instance is equal to all instances ofCoffeePickInventoryEventRuntimeLoadFailedthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:id,exception.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueCoffeePickInventoryEventRuntimeLoadFailedwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static CoffeePickInventoryEventRuntimeLoadFailed of(java.lang.String id, java.lang.Exception exception)
Construct a new immutableCoffeePickInventoryEventRuntimeLoadFailedinstance.- Parameters:
id- The value for theidattributeexception- The value for theexceptionattribute- Returns:
- An immutable CoffeePickInventoryEventRuntimeLoadFailed instance
-
copyOf
public static CoffeePickInventoryEventRuntimeLoadFailed copyOf(CoffeePickInventoryEventRuntimeLoadFailedType instance)
Creates an immutable copy of aCoffeePickInventoryEventRuntimeLoadFailedTypevalue. 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 CoffeePickInventoryEventRuntimeLoadFailed instance
-
builder
public static CoffeePickInventoryEventRuntimeLoadFailed.Builder builder()
Creates a builder forCoffeePickInventoryEventRuntimeLoadFailed.CoffeePickInventoryEventRuntimeLoadFailed.builder() .setId(String) // requiredid.setException(Exception) // requiredexception.build();- Returns:
- A new CoffeePickInventoryEventRuntimeLoadFailed builder
-
-