Class Break.Builder

java.lang.Object
com.graphhopper.jsprit.core.problem.job.Service.Builder<Break>
com.graphhopper.jsprit.core.problem.job.Break.Builder
Enclosing class:
Break

public static class Break.Builder extends Service.Builder<Break>
  • Method Details

    • newInstance

      public static Break.Builder newInstance(String id)
      Returns a new instance of builder that builds a break.
      Parameters:
      id - the id of the pickup
      Returns:
      the builder
    • build

      public Break build()
      Builds Break.

      Pickup type is "break"

      Overrides:
      build in class Service.Builder<Break>
      Returns:
      pickup
      Throws:
      IllegalStateException - if neither locationId nor coordinate has been set