All Downloads are FREE. Search and download functionalities are using the official Maven repository.

blah.tests.GenericTypeMatcher Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
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