MCPcopy Index your code
hub / github.com/benfry/processing4 / compareTo

Method compareTo

app/src/processing/app/ui/EditorHeader.java:508–520  ·  view source on GitHub ↗
(Tab other)

Source from the content-addressed store, hash-verified

506
507 // sort by the last time visited
508 public int compareTo(Tab other) {
509 // do this here to deal with situation where both are 0
510 if (lastVisited == other.lastVisited) {
511 return 0;
512 }
513 if (lastVisited == 0) {
514 return -1;
515 }
516 if (other.lastVisited == 0) {
517 return 1;
518 }
519 return (int) (lastVisited - other.lastVisited);
520 }
521 }
522}

Callers 1

sortCodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected