MCPcopy Create free account
hub / github.com/Neop/mudmap2 / getPaths

Method getPaths

src/main/java/mudmap2/backend/Place.java:218–226  ·  view source on GitHub ↗

Gets the paths to a place @param place a place that this place is connected to @return paths to place

(final Place place)

Source from the content-addressed store, hash-verified

216 * @return paths to place
217 */
218 public HashSet<Path> getPaths(final Place place) {
219 final HashSet<Path> ret = new HashSet<>();
220 for (final Path path : paths) {
221 if (path.hasPlace(place)) {
222 ret.add(path);
223 }
224 }
225 return ret;
226 }
227
228 /**
229 * Gets all paths

Callers 13

testGetPaths_PlaceMethod · 0.95
testGetPaths_0argsMethod · 0.95
testRemovePathMethod · 0.95
testConnectPathMethod · 0.95
testRemoveConnectionsMethod · 0.95
testReadWriteFileMethod · 0.95
testReadWriteFileMethod · 0.95
paintMethod · 0.95
breadthSearchMethod · 0.95
testRemoveMethod · 0.80
pasteMethod · 0.80
ContextMenuMethod · 0.80

Calls 1

hasPlaceMethod · 0.80

Tested by 8

testGetPaths_PlaceMethod · 0.76
testGetPaths_0argsMethod · 0.76
testRemovePathMethod · 0.76
testConnectPathMethod · 0.76
testRemoveConnectionsMethod · 0.76
testReadWriteFileMethod · 0.76
testReadWriteFileMethod · 0.76
testRemoveMethod · 0.64