Class PathImpl

java.lang.Object
de.bsommerfeld.pathetic.engine.result.PathImpl
All Implemented Interfaces:
de.bsommerfeld.pathetic.api.pathing.result.Path, Iterable<de.bsommerfeld.pathetic.api.wrapper.PathPosition>

public class PathImpl extends Object implements de.bsommerfeld.pathetic.api.pathing.result.Path
  • Constructor Summary

    Constructors
    Constructor
    Description
    PathImpl(de.bsommerfeld.pathetic.api.wrapper.PathPosition start, de.bsommerfeld.pathetic.api.wrapper.PathPosition end, Iterable<de.bsommerfeld.pathetic.api.wrapper.PathPosition> positions)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<de.bsommerfeld.pathetic.api.wrapper.PathPosition>
     
    void
    forEach(Consumer<? super de.bsommerfeld.pathetic.api.wrapper.PathPosition> action)
     
    de.bsommerfeld.pathetic.api.wrapper.PathPosition
     
    de.bsommerfeld.pathetic.api.wrapper.PathPosition
     
    Iterator<de.bsommerfeld.pathetic.api.wrapper.PathPosition>
     
    int
     

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface java.lang.Iterable

    spliterator
  • Constructor Details

    • PathImpl

      public PathImpl(de.bsommerfeld.pathetic.api.wrapper.PathPosition start, de.bsommerfeld.pathetic.api.wrapper.PathPosition end, Iterable<de.bsommerfeld.pathetic.api.wrapper.PathPosition> positions)
  • Method Details

    • getStart

      public de.bsommerfeld.pathetic.api.wrapper.PathPosition getStart()
      Specified by:
      getStart in interface de.bsommerfeld.pathetic.api.pathing.result.Path
    • getEnd

      public de.bsommerfeld.pathetic.api.wrapper.PathPosition getEnd()
      Specified by:
      getEnd in interface de.bsommerfeld.pathetic.api.pathing.result.Path
    • iterator

      public Iterator<de.bsommerfeld.pathetic.api.wrapper.PathPosition> iterator()
      Specified by:
      iterator in interface Iterable<de.bsommerfeld.pathetic.api.wrapper.PathPosition>
    • forEach

      public void forEach(Consumer<? super de.bsommerfeld.pathetic.api.wrapper.PathPosition> action)
      Specified by:
      forEach in interface Iterable<de.bsommerfeld.pathetic.api.wrapper.PathPosition>
    • length

      public int length()
      Specified by:
      length in interface de.bsommerfeld.pathetic.api.pathing.result.Path
    • collect

      public Collection<de.bsommerfeld.pathetic.api.wrapper.PathPosition> collect()
      Specified by:
      collect in interface de.bsommerfeld.pathetic.api.pathing.result.Path