Package com.io7m.coffeepick.api
Class CoffeePickCatalogEventRepositoryUpdate
java.lang.Object
com.io7m.coffeepick.api.CoffeePickCatalogEventRepositoryUpdate
- All Implemented Interfaces:
CoffeePickCatalogEventRepositoryUpdateType,CoffeePickCatalogEventType,CoffeePickEventType
public final class CoffeePickCatalogEventRepositoryUpdate extends java.lang.Object implements CoffeePickCatalogEventRepositoryUpdateType
An update of the catalog failed.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoffeePickCatalogEventRepositoryUpdate.BuilderBuilds instances of typeCoffeePickCatalogEventRepositoryUpdate.Nested classes/interfaces inherited from interface com.io7m.coffeepick.api.CoffeePickEventType
CoffeePickEventType.Severity -
Method Summary
Modifier and Type Method Description static CoffeePickCatalogEventRepositoryUpdate.Builderbuilder()Creates a builder forCoffeePickCatalogEventRepositoryUpdate.static CoffeePickCatalogEventRepositoryUpdatecopyOf(CoffeePickCatalogEventRepositoryUpdateType instance)Creates an immutable copy of aCoffeePickCatalogEventRepositoryUpdateTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofCoffeePickCatalogEventRepositoryUpdatethat have equal attribute values.RuntimeRepositoryEventUpdateTypeevent()inthashCode()Computes a hash code from attributes:event.static CoffeePickCatalogEventRepositoryUpdateof(RuntimeRepositoryEventUpdateType event)Construct a new immutableCoffeePickCatalogEventRepositoryUpdateinstance.java.lang.StringtoString()Prints the immutable valueCoffeePickCatalogEventRepositoryUpdatewith attribute values.CoffeePickCatalogEventRepositoryUpdatewithEvent(RuntimeRepositoryEventUpdateType value)Copy the current immutable object by setting a value for theeventattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.coffeepick.api.CoffeePickCatalogEventRepositoryUpdateType
severity
-
Method Details
-
event
- Specified by:
eventin interfaceCoffeePickCatalogEventRepositoryUpdateType- Returns:
- The repository event
-
withEvent
public final CoffeePickCatalogEventRepositoryUpdate withEvent(RuntimeRepositoryEventUpdateType value)Copy the current immutable object by setting a value for theeventattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for event- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofCoffeePickCatalogEventRepositoryUpdatethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:event.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueCoffeePickCatalogEventRepositoryUpdatewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
Construct a new immutableCoffeePickCatalogEventRepositoryUpdateinstance.- Parameters:
event- The value for theeventattribute- Returns:
- An immutable CoffeePickCatalogEventRepositoryUpdate instance
-
copyOf
public static CoffeePickCatalogEventRepositoryUpdate copyOf(CoffeePickCatalogEventRepositoryUpdateType instance)Creates an immutable copy of aCoffeePickCatalogEventRepositoryUpdateTypevalue. 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 CoffeePickCatalogEventRepositoryUpdate instance
-
builder
Creates a builder forCoffeePickCatalogEventRepositoryUpdate.CoffeePickCatalogEventRepositoryUpdate.builder() .setEvent(com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateType) // requiredevent.build();- Returns:
- A new CoffeePickCatalogEventRepositoryUpdate builder
-