org.opentripplanner.routing.util.NullExtraEdges 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
package org.opentripplanner.routing.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import org.opentripplanner.routing.graph.Edge;
import org.opentripplanner.routing.graph.Vertex;
/**
*
* NullExtraEdges is used to speed up checks for extra edges in the (common) case
* where there are none. Extra edges come from StreetLocationFinder, where
* they represent the edges between a location on a street segment and the
* corners at the ends of that segment.
*/
public class NullExtraEdges implements Map> {
@Override
public void clear() {
}
@Override
public boolean containsKey(Object arg0) {
return false;
}
@Override
public boolean containsValue(Object arg0) {
return false;
}
@Override
public Set>> entrySet() {
return null;
}
@Override
public ArrayList get(Object arg0) {
return null;
}
@Override
public boolean isEmpty() {
return false;
}
@Override
public Set keySet() {
return null;
}
@Override
public ArrayList put(Vertex arg0, ArrayList arg1) {
return null;
}
@Override
public void putAll(Map extends Vertex, ? extends ArrayList> arg0) {
}
@Override
public ArrayList remove(Object arg0) {
return null;
}
@Override
public int size() {
return 0;
}
@Override
public Collection> values() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy