Interface Route

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract double length()
      abstract P getPoint(int step)
      abstract List<P> getPoints()
      abstract Stream<P> stream()
      abstract int size()
      • Methods inherited from class java.lang.Iterable

        forEach, iterator, spliterator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • length

         abstract double length()
        Returns:

        the length of the route

      • getPoint

         abstract P getPoint(int step)
        Parameters:
        step - the step
        Returns:

        the step-th Position in the route

      • size

         abstract int size()
        Returns:

        the number of points this route is made of