org.opentripplanner.routing.util.NullExtraEdges Maven / Gradle / Ivy
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;
}
}