@Test public void hasAvoidBorders() { RouteSearchParameters routeSearchParameters = new RouteSearchParameters(); Assert.assertFalse(routeSearchParameters.hasAvoidBorders()); routeSearchParameters.setAvoidBorders(BordersExtractor.Avoid.CONTROLLED); Assert.assertTrue(routeSearchParameters.hasAvoidBorders()); }
public boolean hasAvoidBorders() { return avoidBorders != BordersExtractor.Avoid.NONE; }
RouteSearchParameters { public boolean hasAvoidBorders() { return avoidBorders != BordersExtractor.Avoid.NONE; } }
RouteSearchParameters { public boolean hasAvoidBorders() { return avoidBorders != BordersExtractor.Avoid.NONE; }  }
RouteSearchParameters { public boolean hasAvoidBorders() { return avoidBorders != BordersExtractor.Avoid.NONE; }  int getProfileType(); void setProfileType(int profileType); int getWeightingMethod(); void setWeightingMethod(int weightingMethod); Polygon[] getAvoidAreas(); void setAvoidAreas(Polygon[] avoidAreas); boolean hasAvoidAreas(); int getAvoidFeatureTypes(); void setAvoidFeatureTypes(int avoidFeatures); boolean hasAvoidFeatures(); int[] getAvoidCountries(); void setAvoidCountries(int[] avoidCountries); boolean hasAvoidCountries(); boolean hasAvoidBorders(); void setAvoidBorders(BordersExtractor.Avoid avoidBorders); BordersExtractor.Avoid getAvoidBorders(); Boolean getConsiderTurnRestrictions(); void setConsiderTurnRestrictions(Boolean considerTurnRestrictions); int getVehicleType(); void setVehicleType(int vehicleType); int getAlternativeRoutesCount(); void setAlternativeRoutesCount(int alternativeRoutesCount); double getAlternativeRoutesWeightFactor(); void setAlternativeRoutesWeightFactor(double alternativeRoutesWeightFactor); double getAlternativeRoutesShareFactor(); void setAlternativeRoutesShareFactor(double alternativeRoutesShareFactor); int getExtraInfo(); void setExtraInfo(int extraInfo); boolean getSuppressWarnings(); void setSuppressWarnings(boolean suppressWarnings); String getOptions(); void setOptions(String options); boolean hasParameters(Class<?> value); ProfileParameters getProfileParameters(); void setProfileParams(ProfileParameters profileParams); boolean getFlexibleMode(); void setFlexibleMode(boolean flexibleMode); boolean getOptimized(); void setOptimized(boolean optimized); double[] getMaximumRadiuses(); void setMaximumRadiuses(double[] maxRadiuses); WayPointBearing[] getBearings(); void setBearings(WayPointBearing[] bearings); boolean hasBearings(); void setRoundTripLength(float length); float getRoundTripLength(); void setRoundTripPoints(int points); int getRoundTripPoints(); void setRoundTripSeed(long seed); long getRoundTripSeed(); double getMaximumSpeed(); void setMaximumSpeed(double maximumSpeed); boolean hasMaximumSpeed(); boolean isProfileTypeDriving(); boolean isProfileTypeHeavyVehicle(); boolean requiresDynamicPreprocessedWeights(); boolean requiresFullyDynamicWeights(); }
RouteSearchParameters { public boolean hasAvoidBorders() { return avoidBorders != BordersExtractor.Avoid.NONE; }  int getProfileType(); void setProfileType(int profileType); int getWeightingMethod(); void setWeightingMethod(int weightingMethod); Polygon[] getAvoidAreas(); void setAvoidAreas(Polygon[] avoidAreas); boolean hasAvoidAreas(); int getAvoidFeatureTypes(); void setAvoidFeatureTypes(int avoidFeatures); boolean hasAvoidFeatures(); int[] getAvoidCountries(); void setAvoidCountries(int[] avoidCountries); boolean hasAvoidCountries(); boolean hasAvoidBorders(); void setAvoidBorders(BordersExtractor.Avoid avoidBorders); BordersExtractor.Avoid getAvoidBorders(); Boolean getConsiderTurnRestrictions(); void setConsiderTurnRestrictions(Boolean considerTurnRestrictions); int getVehicleType(); void setVehicleType(int vehicleType); int getAlternativeRoutesCount(); void setAlternativeRoutesCount(int alternativeRoutesCount); double getAlternativeRoutesWeightFactor(); void setAlternativeRoutesWeightFactor(double alternativeRoutesWeightFactor); double getAlternativeRoutesShareFactor(); void setAlternativeRoutesShareFactor(double alternativeRoutesShareFactor); int getExtraInfo(); void setExtraInfo(int extraInfo); boolean getSuppressWarnings(); void setSuppressWarnings(boolean suppressWarnings); String getOptions(); void setOptions(String options); boolean hasParameters(Class<?> value); ProfileParameters getProfileParameters(); void setProfileParams(ProfileParameters profileParams); boolean getFlexibleMode(); void setFlexibleMode(boolean flexibleMode); boolean getOptimized(); void setOptimized(boolean optimized); double[] getMaximumRadiuses(); void setMaximumRadiuses(double[] maxRadiuses); WayPointBearing[] getBearings(); void setBearings(WayPointBearing[] bearings); boolean hasBearings(); void setRoundTripLength(float length); float getRoundTripLength(); void setRoundTripPoints(int points); int getRoundTripPoints(); void setRoundTripSeed(long seed); long getRoundTripSeed(); double getMaximumSpeed(); void setMaximumSpeed(double maximumSpeed); boolean hasMaximumSpeed(); boolean isProfileTypeDriving(); boolean isProfileTypeHeavyVehicle(); boolean requiresDynamicPreprocessedWeights(); boolean requiresFullyDynamicWeights(); static final String KEY_AVOID_COUNTRIES; static final String KEY_AVOID_BORDERS; static final String KEY_PROFILE_PARAMS; static final String KEY_AVOID_FEATURES; static final String KEY_AVOID_POLYGONS; static final String KEY_ALTERNATIVE_ROUTES_WEIGHT_FACTOR; static final String KEY_ALTERNATIVE_ROUTES_SHARE_FACTOR; }