protected < T extends XmlFieldInstance > String measureWithGenerics ( String jsonRecord ) throws InvalidJsonException { changed ( ) ; // JsonPathCache<T> cache = new JsonPathCache<>(jsonRecord); cache = new JsonPathCache <> ( jsonRecord ) ; List < String > items = new ArrayList <> ( ) ; for ( Calculator calculator : getCalculators ( ) ) { calculator . measure ( cache ) ; items . add ( calculator . getCsv ( false , compressionLevel ) ) ; } return StringUtils . join ( items , "," ) ; }
The generic version of measure .