Record Class Changes.Change.JavaTestSourceChange
java.lang.Object
java.lang.Record
org.springframework.modulith.junit.Changes.Change.JavaTestSourceChange
- All Implemented Interfaces:
Changes.Change
,Changes.Change.SourceChange
- Enclosing interface:
- Changes.Change
public static record Changes.Change.JavaTestSourceChange(String fullyQualifiedClassName)
extends Record
implements Changes.Change.SourceChange
A change in a Java test source file.
- Author:
- Lukas Dohmen, David Bilge, Oliver Drotbohm
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.modulith.junit.Changes.Change
Changes.Change.JavaSourceChange, Changes.Change.JavaTestSourceChange, Changes.Change.OtherFileChange, Changes.Change.SourceChange
-
Constructor Summary
ConstructorDescriptionJavaTestSourceChange
(String fullyQualifiedClassName) Creates an instance of aJavaTestSourceChange
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefullyQualifiedClassName
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.modulith.junit.Changes.Change.SourceChange
hasOrigin
-
Constructor Details
-
JavaTestSourceChange
Creates an instance of aJavaTestSourceChange
record class.- Parameters:
fullyQualifiedClassName
- the value for thefullyQualifiedClassName
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
fullyQualifiedClassName
Returns the value of thefullyQualifiedClassName
record component.- Specified by:
fullyQualifiedClassName
in interfaceChanges.Change.SourceChange
- Returns:
- the value of the
fullyQualifiedClassName
record component
-