Interface DistanceParser.DistanceCacheWriter

  • Enclosing interface:
    DistanceParser
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface DistanceParser.DistanceCacheWriter
    Interface to plug in the cache storage into the parser.
    Since:
    0.7.0
    Author:
    Erich Schubert
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void put​(int id1, int id2, double distance)
      Puts the specified distance value for the given ids to the distance cache.
    • Method Detail

      • put

        void put​(int id1,
                 int id2,
                 double distance)
        Puts the specified distance value for the given ids to the distance cache.
        Parameters:
        id1 - the first id offset
        id2 - the second id offset
        distance - the distance value