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

Method compareTo

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

Compares two places by their name @param arg0 @return

(final Place arg0)

Source from the content-addressed store, hash-verified

392 * @return
393 */
394 @Override
395 public int compareTo(final Place arg0) {
396 if (arg0 == null) {
397 throw new NullPointerException();
398 }
399 return getName().compareTo(arg0.getName());
400 }
401
402 /**
403 * Removes all connections to other places (paths, child-connections)

Callers 3

testCompareToMethod · 0.95
testCompareToMethod · 0.45
compareMethod · 0.45

Calls 1

getNameMethod · 0.95

Tested by 2

testCompareToMethod · 0.76
testCompareToMethod · 0.36