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 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