Record Class ClasspathPropertySourceImporter.ClasspathImport
java.lang.Object
java.lang.Record
io.micronaut.context.env.ClasspathPropertySourceImporter.ClasspathImport
- Record Components:
resourcePath- The classpath resource pathallowMultiple- Whether multiple classpath resources may be merged
- Enclosing class:
ClasspathPropertySourceImporter
-
Constructor Summary
ConstructorsConstructorDescriptionClasspathImport(String resourcePath, boolean allowMultiple) Creates an instance of aClasspathImportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowMultiplerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresourcePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ClasspathImport
Creates an instance of aClasspathImportrecord class.- Parameters:
resourcePath- the value for theresourcePathrecord componentallowMultiple- the value for theallowMultiplerecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
resourcePath
Returns the value of theresourcePathrecord component.- Returns:
- the value of the
resourcePathrecord component
-
allowMultiple
public boolean allowMultiple()Returns the value of theallowMultiplerecord component.- Returns:
- the value of the
allowMultiplerecord component
-