Class ComparableThrowable
- java.lang.Object
-
- de.bmiag.tapir.executiontest.expectation.execution.ComparableThrowable
-
public final class ComparableThrowable extends java.lang.Object
Immutable implementation ofComparableThrowable
.Use the
build(Procedure1)
orcopy(Procedure1)
method to create immutable instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComparableThrowable.Builder
Builds instances of typeComparableThrowable
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComparableThrowable
build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ComparableThrowable.Builder> init)
Creates an immutable instance of ComparableThrowable.ComparableThrowable
copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ComparableThrowable.Builder> init)
Creates an immutable copy of this instance.boolean
equals(java.lang.Object obj)
java.lang.String
getMessage()
java.lang.Class<? extends java.lang.Throwable>
getThrowableClass()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getThrowableClass
public java.lang.Class<? extends java.lang.Throwable> getThrowableClass()
- Returns:
- The value of the
throwableClass
attribute
-
getMessage
public java.lang.String getMessage()
- Returns:
- The value of the
message
attribute
-
equals
@Pure public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
@Pure public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@Pure public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
build
public static ComparableThrowable build(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ComparableThrowable.Builder> init)
Creates an immutable instance of ComparableThrowable. The values can be initialized by using the init parameter.- Parameters:
init
- The initializer- Returns:
- An immutable ComparableThrowable instance
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-
copy
public ComparableThrowable copy(org.eclipse.xtext.xbase.lib.Procedures.Procedure1<ComparableThrowable.Builder> init)
Creates an immutable copy of this instance. Uses accessors to get values to initialize the new immutable instance. The values can be modified by using the init parameter.- Parameters:
init
- The initializer- Returns:
- A copied immutable ComparableThrowable instance
-
-