blah.tests.GenericTypeMatcher Maven / Gradle / Ivy
package blah.tests;
import lombok.RequiredArgsConstructor;
import lombok.experimental.ExtensionMethod;
import trip.spi.helpers.filter.Condition;
@RequiredArgsConstructor
@SuppressWarnings( "rawtypes" )
@ExtensionMethod( Commons.class )
public class GenericTypeMatcher implements Condition {
final Class targetClass;
@Override
public boolean check( Converter converter ) {
return converter.getClass()
.extractGenericTypeFromFirstInterface()
.equals( this.targetClass );
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy