/** * Is the AP set? * @param index index of AP * @return <b>true</b> if AP is set */ public bool isSet(int index) { if (!isNormal()) { throw new Exception("Can't get AP, is either TRUE/FALSE!"); ; } return(bits_set.get(index)); }
/** * Gets the value for this AP. You can't get the value if the AP is not set. * @param index index of AP * @return <b>true</b> if AP is true */ public bool getValue(int index) { if (!isNormal()) { throw new Exception("Can't get AP, is either TRUE/FALSE!"); } if (!bits_set.get(index)) { throw new Exception("Can't get value: AP not set!"); } return(bits_value.get(index)); }