MCPcopy Create free account
hub / github.com/apache/thrift / compareTo

Method compareTo

lib/javame/src/org/apache/thrift/TBaseHelper.java:27–31  ·  view source on GitHub ↗
(boolean a, boolean b)

Source from the content-addressed store, hash-verified

25public class TBaseHelper {
26
27 public static int compareTo(boolean a, boolean b) {
28 return (a == b) ? 0 : (a ? 1 : -1);
29
30
31 }
32 public static int compareTo(Boolean a, Boolean b) {
33 return (a.booleanValue() == b.booleanValue()) ? 0 : (a.booleanValue() ? 1 : -1);
34

Callers

nothing calls this directly

Calls 4

compareToMethod · 0.65
getValueMethod · 0.65
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected