/** * Contructs a new {@code Way} from an existing {@code Way}. * * @param original The original {@code Way} to be identically cloned. Must not be null * @param clearMetadata If {@code true}, clears the OSM id and other metadata as defined by {@link * #clearOsmMetadata}. If {@code false}, does nothing * @since 2410 */ public Way(Way original, boolean clearMetadata) { super(original.getUniqueId(), true); cloneFrom(original); if (clearMetadata) { clearOsmMetadata(); } }