public static ModelledFeature createModelledFeature( String name, CvTerm featureType, Collection<Range> ranges) { ModelledFeature feature = new DefaultModelledFeature(name, null, featureType); if (ranges != null) { feature.getRanges().addAll(ranges); } return feature; }
public static ModelledFeature createModelledFeature( String name, CvTerm featureType, Range range) { ModelledFeature feature = new DefaultModelledFeature(name, null, featureType); if (range != null) { feature.getRanges().add(range); } return feature; }