
org.opentripplanner.service.vehiclerental.street.NoRestriction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.service.vehiclerental.street;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import org.opentripplanner.street.model.RentalRestrictionExtension;
import org.opentripplanner.street.search.state.State;
/**
* No restriction on traversal which is the default.
*/
public final class NoRestriction implements RentalRestrictionExtension {
@Override
public boolean traversalBanned(State state) {
return false;
}
@Override
public boolean dropOffBanned(State state) {
return false;
}
@Override
public Set debugTypes() {
return EnumSet.noneOf(RestrictionType.class);
}
@Override
public RentalRestrictionExtension add(RentalRestrictionExtension other) {
return other;
}
@Override
public List toList() {
return List.of();
}
@Override
public List networks() {
return List.of();
}
@Override
public boolean hasRestrictions() {
return false;
}
@Override
public Set noDropOffNetworks() {
return Set.of();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy