/** * Returns true if the given Object is a TransitionChoice and has identical underlying choices and * choiceCount * * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (obj instanceof BasicChooseInformation) { BasicChooseInformation<?> other = (BasicChooseInformation<?>) obj; if (title == null) { if (other.title != null) { return false; } } else if (!title.equals(other.title)) { return false; } return setName.equals(other.setName) && pcs.equals(other.pcs); } return false; }
@Override public GroupingState getGroupingState() { return pcs.getGroupingState(); }
/** * Returns a Set of objects contained within this ChoiceSet for the given PlayerCharacter. * * @param pc The PlayerCharacter for which the choices in this ChoiceSet should be returned. * @return a Set of objects contained within this ChoiceSet for the given PlayerCharacter. */ @Override public Collection<T> getSet(PlayerCharacter pc) { return pcs.getSet(pc); }
/** * Returns the Class contained within this ChoiceSet * * @return the Class contained within this ChoiceSet */ @Override public ClassIdentity<? super T> getClassIdentity() { return BasicClassIdentity.getInstance(pcs.getChoiceClass()); }
/** Returns a representation of this ChoiceSet, suitable for storing in an LST file. */ @Override public String getLSTformat() { return pcs.getLSTformat(false); }
/** * Returns a Set of objects contained within this ChoiceSet for the given PlayerCharacter. * * @param pc The PlayerCharacter for which the choices in this ChoiceSet should be returned. * @return a Set of objects contained within this ChoiceSet for the given PlayerCharacter. */ @Override public Collection<T> getSet(PlayerCharacter pc) { return Collections.unmodifiableCollection(pcs.getSet(pc)); }