Package io.micronaut.context.conditions
Record Class MatchesConfigurationCondition
java.lang.Object
java.lang.Record
io.micronaut.context.conditions.MatchesConfigurationCondition
- Record Components:
- configurationName- The configuration name
- minimumVersion- The minimum version
- All Implemented Interfaces:
- Condition,- Predicate<ConditionContext>
@Internal
public record MatchesConfigurationCondition(String configurationName, @Nullable String minimumVersion)
extends Record
implements Condition
The configuration condition.
- Since:
- 4.6
- Author:
- Denis Stepanov
- 
Constructor SummaryConstructorsConstructorDescriptionMatchesConfigurationCondition(String configurationName, @Nullable String minimumVersion) Creates an instance of aMatchesConfigurationConditionrecord class.
- 
Method SummaryModifier 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.Returns the value of theminimumVersionrecord component.toString()Returns a string representation of this record class.
- 
Constructor Details- 
MatchesConfigurationConditionpublic MatchesConfigurationCondition(String configurationName, @Nullable @Nullable String minimumVersion) Creates an instance of aMatchesConfigurationConditionrecord class.- Parameters:
- configurationName- the value for the- configurationNamerecord component
- minimumVersion- the value for the- minimumVersionrecord component
 
 
- 
- 
Method Details- 
matchesDescription copied from interface:ConditionCheck whether a specific condition is met.
- 
equalsIndicates 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).
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
toStringReturns 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.
- 
configurationNameReturns the value of theconfigurationNamerecord component.- Returns:
- the value of the configurationNamerecord component
 
- 
minimumVersionReturns the value of theminimumVersionrecord component.- Returns:
- the value of the minimumVersionrecord component
 
 
-