/** * Removes the property specified by a JSON Pointer from a copy of this Feature. * * @param pointer defines the hierarchical path to the property to be removed. * @return a copy of this Feature with the specified property removed. * @throws NullPointerException if {@code pointer} is {@code null}. */ default Feature removeProperty(final CharSequence pointer) { return removeProperty(JsonPointer.of(pointer)); }
/** * Removes the property specified by a JSON Pointer from a copy of this Feature. * * @param pointer defines the hierarchical path to the property to be removed. * @return a copy of this Feature with the specified property removed. * @throws NullPointerException if {@code pointer} is {@code null}. */ default Feature removeProperty(final CharSequence pointer) { return removeProperty(JsonPointer.of(pointer)); }
@Override public Features removeProperty(final String featureId, final JsonPointer propertyPath) { final Feature feature = getFeatureOrNull(featureId); if (null != feature) { return setFeature(feature.removeProperty(propertyPath)); } return this; }
@Override public Features removeProperty(final String featureId, final JsonPointer propertyPath) { final Feature feature = getFeatureOrNull(featureId); if (null != feature) { return setFeature(feature.removeProperty(propertyPath)); } return this; }