mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-03-13 03:21:24 +07:00
Changed visibility of some StatList methods to public
Exposed #numLists(), #maxLists(), #contains(int) and #get(int)
This commit is contained in:
parent
e7d868106d
commit
15d2b13bff
@ -140,11 +140,11 @@ public final class StatList {
|
||||
return size(list) == 0;
|
||||
}
|
||||
|
||||
int numLists() {
|
||||
public int numLists() {
|
||||
return numLists;
|
||||
}
|
||||
|
||||
int maxLists() {
|
||||
public int maxLists() {
|
||||
return maxLists;
|
||||
}
|
||||
|
||||
@ -186,12 +186,12 @@ public final class StatList {
|
||||
return get(0);
|
||||
}
|
||||
|
||||
StatListRef get(final int list) {
|
||||
public StatListRef get(final int list) {
|
||||
if (!contains(list)) throw new IndexOutOfBoundsException("StatList does not contain list(" + list + "): numLists(" + numLists + ")");
|
||||
return new StatListRef(this, list);
|
||||
}
|
||||
|
||||
boolean contains(final int list) {
|
||||
public boolean contains(final int list) {
|
||||
return list >= 0 && list < numLists;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user