int get(int posIndex) { if (posIndex < location.length) return location[posIndex]; return Location.NONE; }