@Test public void compare() { final MetricName t0 = MetricName.valueOf("a"); final MetricName t1 = MetricName.valueOf("a", "a"); final MetricName t2 = MetricName.valueOf("a", "b"); assertTrue(t0.compareTo(t1) < 0); assertTrue(t0.compareTo(t2) < 0); assertTrue(t1.compareTo(t0) > 0); assertTrue(t1.compareTo(t2) < 0); assertTrue(t2.compareTo(t0) > 0); assertTrue(t2.compareTo(t1) > 0); assertTrue(t0.compareTo(null) > 0); assertTrue(t1.compareTo(null) > 0); assertTrue(t2.compareTo(null) > 0); }
public static MetricName valueOf(String... path) { return CACHE.apply(new PathArray(path)); }
MetricName extends BasicPath<MetricName> implements Comparable<MetricName>, Path { public static MetricName valueOf(String... path) { return CACHE.apply(new PathArray(path)); } }
MetricName extends BasicPath<MetricName> implements Comparable<MetricName>, Path { public static MetricName valueOf(String... path) { return CACHE.apply(new PathArray(path)); } private  MetricName(PathArray path); }
MetricName extends BasicPath<MetricName> implements Comparable<MetricName>, Path { public static MetricName valueOf(String... path) { return CACHE.apply(new PathArray(path)); } private  MetricName(PathArray path); static MetricName valueOf(String... path); static MetricName valueOf(List<String> path); }
MetricName extends BasicPath<MetricName> implements Comparable<MetricName>, Path { public static MetricName valueOf(String... path) { return CACHE.apply(new PathArray(path)); } private  MetricName(PathArray path); static MetricName valueOf(String... path); static MetricName valueOf(List<String> path);  }