Record Class Changes.Change.LanguageConfig
java.lang.Object
java.lang.Record
org.springframework.modulith.junit.Changes.Change.LanguageConfig
- Enclosing interface:
- Changes.Change
public static record Changes.Change.LanguageConfig(String mainDir, String testDir, Function<String,? extends Changes.Change.SourceChange> mainFactory, Function<String,? extends Changes.Change.SourceChange> testFactory)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Changes.Change.LanguageConfig(package private) static final Changes.Change.LanguageConfig -
Constructor Summary
ConstructorsConstructorDescriptionLanguageConfig(String mainDir, String testDir, Function<String, ? extends Changes.Change.SourceChange> mainFactory, Function<String, ? extends Changes.Change.SourceChange> testFactory) Creates an instance of aLanguageConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mainDir()Returns the value of themainDirrecord component.Function<String,? extends Changes.Change.SourceChange> Returns the value of themainFactoryrecord component.testDir()Returns the value of thetestDirrecord component.Function<String,? extends Changes.Change.SourceChange> Returns the value of thetestFactoryrecord component.(package private) Changes.ChangetoChange(ModifiedFile file) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
JAVA
-
KOTLIN
-
-
Constructor Details
-
LanguageConfig
public LanguageConfig(String mainDir, String testDir, Function<String, ? extends Changes.Change.SourceChange> mainFactory, Function<String, ? extends Changes.Change.SourceChange> testFactory) Creates an instance of aLanguageConfigrecord class.- Parameters:
mainDir- the value for themainDirrecord componenttestDir- the value for thetestDirrecord componentmainFactory- the value for themainFactoryrecord componenttestFactory- the value for thetestFactoryrecord component
-
-
Method Details
-
toChange
-
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). -
mainDir
Returns the value of themainDirrecord component.- Returns:
- the value of the
mainDirrecord component
-
testDir
Returns the value of thetestDirrecord component.- Returns:
- the value of the
testDirrecord component
-
mainFactory
Returns the value of themainFactoryrecord component.- Returns:
- the value of the
mainFactoryrecord component
-
testFactory
Returns the value of thetestFactoryrecord component.- Returns:
- the value of the
testFactoryrecord component
-