@Immutable public abstract class TestId extends Object implements Comparable<TestId>, Serializable
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TestId that) |
boolean |
equals(Object obj) |
TestId |
getFirstChild() |
abstract int |
getIndex() |
abstract TestId |
getNextSibling() |
abstract TestId |
getParent() |
int |
hashCode() |
boolean |
isAncestorOf(TestId descendant) |
boolean |
isDescendantOf(TestId ancestor) |
abstract boolean |
isFirstChild() |
abstract boolean |
isRoot() |
static TestId |
of(int... path) |
String |
toString() |
public static final TestId ROOT
public static TestId of(int... path)
public abstract boolean isRoot()
public abstract boolean isFirstChild()
public boolean isAncestorOf(TestId descendant)
public boolean isDescendantOf(TestId ancestor)
public abstract TestId getParent()
public TestId getFirstChild()
public abstract TestId getNextSibling()
public abstract int getIndex()
public int compareTo(TestId that)
compareTo
in interface Comparable<TestId>
Copyright © 2011-2013. All Rights Reserved.