Package org.openstreetmap.josm.command
Interface SplitWayCommand.Strategy
- Enclosing class:
- SplitWayCommand
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Determines which way chunk should reuse the old id and its history
-
Method Summary
Modifier and TypeMethodDescriptiondetermineWayToKeep(Iterable<Way> wayChunks) Determines which way chunk should reuse the old id and its history.static SplitWayCommand.StrategyReturns a strategy which selects the first way chunk.static SplitWayCommand.StrategyReturns a strategy which selects the way chunk with the highest node count to keep.
-
Method Details
-
determineWayToKeep
Determines which way chunk should reuse the old id and its history.- Parameters:
wayChunks- the way chunks- Returns:
- the way to keep
-
keepLongestChunk
Returns a strategy which selects the way chunk with the highest node count to keep.- Returns:
- strategy which selects the way chunk with the highest node count to keep
-
keepFirstChunk
Returns a strategy which selects the first way chunk.- Returns:
- strategy which selects the first way chunk
-