Record Class MatchesConfigurationCondition
java.lang.Object
java.lang.Record
io.micronaut.context.conditions.MatchesConfigurationCondition
- Record Components:
configurationName- The configuration nameminimumVersion- The minimum version
- All Implemented Interfaces:
Condition, Predicate<ConditionContext>
-
Constructor Summary
ConstructorsConstructorDescriptionMatchesConfigurationCondition(String configurationName, @Nullable String minimumVersion) Creates an instance of aMatchesConfigurationConditionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigurationNamerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.booleanmatches(ConditionContext context) Check whether a specific condition is met.@Nullable StringReturns the value of theminimumVersionrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
MatchesConfigurationCondition
Creates an instance of aMatchesConfigurationConditionrecord class.- Parameters:
configurationName- the value for theconfigurationNamerecord componentminimumVersion- the value for theminimumVersionrecord component
-
-
Method Details
-
matches
Description copied from interface:ConditionCheck whether a specific condition is met. -
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). -
hashCode
-
toString
-
configurationName
Returns the value of theconfigurationNamerecord component.- Returns:
- the value of the
configurationNamerecord component
-
minimumVersion
Returns the value of theminimumVersionrecord component.- Returns:
- the value of the
minimumVersionrecord component
-