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

com.github.fge.grappa.debugger.model.db.PerClassStatisticsMapper Maven / Gradle / Ivy

The newest version!
package com.github.fge.grappa.debugger.model.db;

import com.github.fge.grappa.debugger.jooq.Tables;
import org.jooq.Record;
import org.jooq.RecordMapper;

public final class PerClassStatisticsMapper
    implements RecordMapper
{
    @Override
    public PerClassStatistics map(final Record record)
    {
        //noinspection AutoUnboxing
        return new PerClassStatistics(
            record.getValue(Tables.MATCHERS.CLASS_NAME),
            record.getValue("nrRules", Integer.class),
            record.getValue("nrCalls", Integer.class)
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy