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 class
CoffeePickCatalogEventRepositoryUpdate.Builder
Builds 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.Builder
builder()
Creates a builder forCoffeePickCatalogEventRepositoryUpdate
.static CoffeePickCatalogEventRepositoryUpdate
copyOf(CoffeePickCatalogEventRepositoryUpdateType instance)
Creates an immutable copy of aCoffeePickCatalogEventRepositoryUpdateType
value.boolean
equals(java.lang.Object another)
This instance is equal to all instances ofCoffeePickCatalogEventRepositoryUpdate
that have equal attribute values.RuntimeRepositoryEventUpdateType
event()
int
hashCode()
Computes a hash code from attributes:event
.static CoffeePickCatalogEventRepositoryUpdate
of(RuntimeRepositoryEventUpdateType event)
Construct a new immutableCoffeePickCatalogEventRepositoryUpdate
instance.java.lang.String
toString()
Prints the immutable valueCoffeePickCatalogEventRepositoryUpdate
with attribute values.CoffeePickCatalogEventRepositoryUpdate
withEvent(RuntimeRepositoryEventUpdateType value)
Copy the current immutable object by setting a value for theevent
attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.io7m.coffeepick.api.CoffeePickCatalogEventRepositoryUpdateType
severity
-
Method Details
-
event
- Specified by:
event
in interfaceCoffeePickCatalogEventRepositoryUpdateType
- Returns:
- The repository event
-
withEvent
public final CoffeePickCatalogEventRepositoryUpdate withEvent(RuntimeRepositoryEventUpdateType value)Copy the current immutable object by setting a value for theevent
attribute. 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
this
object
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofCoffeePickCatalogEventRepositoryUpdate
that have equal attribute values.- Overrides:
equals
in classjava.lang.Object
- Returns:
true
ifthis
is equal toanother
instance
-
hashCode
public int hashCode()Computes a hash code from attributes:event
.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueCoffeePickCatalogEventRepositoryUpdate
with attribute values.- Overrides:
toString
in classjava.lang.Object
- Returns:
- A string representation of the value
-
of
Construct a new immutableCoffeePickCatalogEventRepositoryUpdate
instance.- Parameters:
event
- The value for theevent
attribute- Returns:
- An immutable CoffeePickCatalogEventRepositoryUpdate instance
-
copyOf
public static CoffeePickCatalogEventRepositoryUpdate copyOf(CoffeePickCatalogEventRepositoryUpdateType instance)Creates an immutable copy of aCoffeePickCatalogEventRepositoryUpdateType
value. 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) // required
event
.build();- Returns:
- A new CoffeePickCatalogEventRepositoryUpdate builder
-