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
ConstructorsConstructorDescriptionJavaTestSourceChange(String fullyQualifiedClassName) Creates an instance of aJavaTestSourceChangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefullyQualifiedClassNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.modulith.junit.Changes.Change.SourceChange
hasOrigin
-
Constructor Details
-
JavaTestSourceChange
Creates an instance of aJavaTestSourceChangerecord class.- Parameters:
fullyQualifiedClassName- the value for thefullyQualifiedClassNamerecord 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 thefullyQualifiedClassNamerecord component.- Specified by:
fullyQualifiedClassNamein interfaceChanges.Change.SourceChange- Returns:
- the value of the
fullyQualifiedClassNamerecord component
-