@Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof RoadModelBuilders.DynamicGraphRMB) { RoadModelBuilders.DynamicGraphRMB that = (RoadModelBuilders.DynamicGraphRMB) o; return (this.distanceUnit.equals(that.getDistanceUnit())) && (this.speedUnit.equals(that.getSpeedUnit())) && (this.graphSupplier.equals(that.getGraphSupplier())) && (this.modCheckEnabled == that.isModCheckEnabled()); } return false; }
@Override public DynamicGraphRMB withSpeedUnit(Unit<Velocity> unit) { return create(getDistanceUnit(), unit, getGraphSupplier(), isModCheckEnabled()); }
@Override public DynamicGraphRMB withDistanceUnit(Unit<Length> unit) { return create(unit, getSpeedUnit(), getGraphSupplier(), isModCheckEnabled()); }
@Override public DynamicGraphRMB withModificationCheck(boolean enabled) { return create(getDistanceUnit(), getSpeedUnit(), getGraphSupplier(), enabled); }
static CollisionGraphRMB create(Unit<Length> distanceUnit, Unit<Velocity> speedUnit, Supplier<ListenableGraph<?>> graphSupplier, boolean isGmcEnabled, double vehicleLength, double minDistance) { return new AutoValue_RoadModelBuilders_CollisionGraphRMB(distanceUnit, speedUnit, graphSupplier, isGmcEnabled, vehicleLength, minDistance); } }