Class RuntimeRepositoryEventUpdateFailed
java.lang.Object
com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailed
- All Implemented Interfaces:
RuntimeRepositoryEventType,RuntimeRepositoryEventUpdateFailedType,RuntimeRepositoryEventUpdateType
public final class RuntimeRepositoryEventUpdateFailed extends java.lang.Object implements RuntimeRepositoryEventUpdateFailedType
A repository update has failed.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRuntimeRepositoryEventUpdateFailed.BuilderBuilds instances of typeRuntimeRepositoryEventUpdateFailed.Nested classes/interfaces inherited from interface com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateType
RuntimeRepositoryEventUpdateType.Kind -
Method Summary
Modifier and Type Method Description static RuntimeRepositoryEventUpdateFailed.Builderbuilder()Creates a builder forRuntimeRepositoryEventUpdateFailed.static RuntimeRepositoryEventUpdateFailedcopyOf(RuntimeRepositoryEventUpdateFailedType instance)Creates an immutable copy of aRuntimeRepositoryEventUpdateFailedTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofRuntimeRepositoryEventUpdateFailedthat have equal attribute values.java.lang.Exceptionexception()inthashCode()Computes a hash code from attributes:repository,exception.java.net.URIrepository()java.lang.StringtoString()Prints the immutable valueRuntimeRepositoryEventUpdateFailedwith attribute values.RuntimeRepositoryEventUpdateFailedwithException(java.lang.Exception value)Copy the current immutable object by setting a value for theexceptionattribute.RuntimeRepositoryEventUpdateFailedwithRepository(java.net.URI value)Copy the current immutable object by setting a value for therepositoryattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.coffeepick.repository.spi.RuntimeRepositoryEventUpdateFailedType
kind
-
Method Details
-
repository
public java.net.URI repository()- Specified by:
repositoryin interfaceRuntimeRepositoryEventType- Specified by:
repositoryin interfaceRuntimeRepositoryEventUpdateFailedType- Specified by:
repositoryin interfaceRuntimeRepositoryEventUpdateType- Returns:
- The value of the
repositoryattribute
-
exception
public java.lang.Exception exception()- Specified by:
exceptionin interfaceRuntimeRepositoryEventUpdateFailedType- Returns:
- The raised exception
-
withRepository
Copy the current immutable object by setting a value for therepositoryattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for repository- Returns:
- A modified copy of the
thisobject
-
withException
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 ofRuntimeRepositoryEventUpdateFailedthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:repository,exception.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueRuntimeRepositoryEventUpdateFailedwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static RuntimeRepositoryEventUpdateFailed copyOf(RuntimeRepositoryEventUpdateFailedType instance)Creates an immutable copy of aRuntimeRepositoryEventUpdateFailedTypevalue. 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 RuntimeRepositoryEventUpdateFailed instance
-
builder
Creates a builder forRuntimeRepositoryEventUpdateFailed.RuntimeRepositoryEventUpdateFailed.builder() .setRepository(java.net.URI) // requiredrepository.setException(Exception) // requiredexception.build();- Returns:
- A new RuntimeRepositoryEventUpdateFailed builder
-