Skip to content

Instantly share code, notes, and snippets.

@fge
Created March 4, 2015 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fge/4eef6bf9e083e97e49ec to your computer and use it in GitHub Desktop.
Save fge/4eef6bf9e083e97e49ec to your computer and use it in GitHub Desktop.
public final class PerClassStatisticsMapper
implements RecordMapper<Record, PerClassStatistics>
{
@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)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment