/** * Visitor function, which looks at each feature and finds the maximum. * * @param feature the feature to be visited */ public void visit(SimpleFeature feature) { visit((org.opengis.feature.Feature) feature); }
public void visit(SimpleFeature feature) { super.visit(feature); visited = true; } }
public void visit(Feature feature) { super.visit(feature); visited = true; }
/** * Visitor function, which looks at each feature and finds the maximum. * * @param feature the feature to be visited */ public void visit(SimpleFeature feature) { visit((org.opengis.feature.Feature)feature); } public void visit(org.opengis.feature.Feature feature) {
@SuppressWarnings("unchecked") @Override public void visit(Feature feature) { super.visit(feature); // if we got a NAN let's leave final int nanCount=getNaNCount(); if(oldNanCount!=nanCount) { oldNanCount=nanCount; return; } // if we got a null let's leave final int nullCount=getNullCount(); if(oldNullCount!=nullCount) { oldNullCount=nullCount; return; } // check if we got a real value final Comparable max=getMax(); if ( oldValue==null||max.compareTo(oldValue) != 0) { targetFeature=feature; oldValue=max; } }