The specified id may be null. In this case an id will be generated internally by the builder.
null
After this method returns, all internal builder state is reset.
492493494495496497498499500501
featureBuilder.set("timestamp", System.currentTimeMillis()); featureBuilder.set("changeset", -changeset); // temporary negative changeset ID // featureBuilder.set("version", version); flusher.put("way", featureBuilder.buildFeature(id)); } else { flusher.put("way", featureBuilder.buildFeature(id)); } } }
569570571572573574575576577578579
} else { throw new IllegalArgumentException(); } String fid = String.valueOf(feature.getId()); SimpleFeature simpleFeature = builder.buildFeature(fid); return simpleFeature; } /** * @param tags
190191192193194195196197198199200
property.getValue()); } else { builder.set(property.getName(), property.getValue()); } } Feature modifiedFeature = builder.buildFeature(feature.getIdentifier().getID()); return Optional.fromNullable(modifiedFeature); } };