}
public TmfContext(ITmfLocation<?> location) {
- this(location, 0);
+ this(location, UNKNOWN_RANK);
}
public TmfContext(TmfContext other) {
}
public TmfContext() {
- this(null, 0);
+ this(null, UNKNOWN_RANK);
}
// ------------------------------------------------------------------------
}
public void updateRank(int delta) {
- if (fRank != UNKNOWN_RANK)
+ if (isValidRank())
fRank += delta;
}
+ public boolean isValidRank() {
+ return fRank != UNKNOWN_RANK;
+ }
+
// ------------------------------------------------------------------------
// Object
// ------------------------------------------------------------------------