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

org.simpleflatmapper.reflect.meta.CountNumberOfMatchedProperties Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.reflect.meta;

public class CountNumberOfMatchedProperties implements PropertyFinder.FoundProperty {


    public int nbFound =  0;
    public final PropertyFinder.FoundProperty delegate;

    public CountNumberOfMatchedProperties(PropertyFinder.FoundProperty delegate) {
        this.delegate = delegate;
    }

    @Override
    public 

> void found(P propertyMeta, Runnable selectionCallback, PropertyMatchingScore score, PropertyFinder.TypeAffinityScorer typeAffinityScorer) { if (!propertyMeta.isNonMapped()) { nbFound++; } delegate.found(propertyMeta, selectionCallback, score, typeAffinityScorer); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy