Package org.gradle.api.attributes
Interface CompatibilityCheckDetails<T>
- Type Parameters:
- T- the concrete type of the attribute
public interface CompatibilityCheckDetails<T>
Provides context about attribute compatibility checks, and allows the user to define
 when an attribute is compatible with another.
 
A compatibility check will never be performed when the consumer and producer values are equal.
- Since:
- 3.3
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalling this method will indicate that the attributes are compatible.The value of the attribute as found on the consumer side.The value of the attribute as found on the producer side.voidCalling this method will indicate that the attributes are incompatible.
- 
Method Details- 
getConsumerValueThe value of the attribute as found on the consumer side.Never equal to the getProducerValue().- Returns:
- the value from the consumer
 
- 
getProducerValueThe value of the attribute as found on the producer side.Never equal to the getConsumerValue().- Returns:
- the value from the producer
 
- 
compatiblevoid compatible()Calling this method will indicate that the attributes are compatible.
- 
incompatiblevoid incompatible()Calling this method will indicate that the attributes are incompatible.
 
-