Package org.optaplanner.core.impl.heuristic.selector.common.nearby

## Class NearbyDistanceMatrix<Origin,​Destination>

- java.lang.Object
- - org.optaplanner.core.impl.heuristic.selector.common.nearby.NearbyDistanceMatrix<Origin,​Destination>

-     public final class NearbyDistanceMatrix<Origin,​Destination>
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `NearbyDistanceMatrix​(NearbyDistanceMeter<Origin,​Destination> nearbyDistanceMeter, int originSize, Function<Origin,​Iterator<Destination>> destinationIteratorProvider, ToIntFunction<Origin> destinationSizeFunction)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addAllDestinations​(Origin origin)` |
    `Object` | `getDestination​(Origin origin, int nearbyIndex)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NearbyDistanceMatrix

          public NearbyDistanceMatrix​(NearbyDistanceMeter<Origin,​Destination> nearbyDistanceMeter,
                                      int originSize,
                                      Function<Origin,​Iterator<Destination>> destinationIteratorProvider,
                                      ToIntFunction<Origin> destinationSizeFunction)

  - ### Method Detail

    - #### addAllDestinations

          public void addAllDestinations​(Origin origin)

    - #### getDestination

          public Object getDestination​(Origin origin,
                                       int nearbyIndex)