final boolean updateAndCheckOccurrenceNumbers( ModifiableOntologyIndex index, OccurrenceIncrement increment) { if (!updateOccurrenceNumbers(index, increment)) { LOGGER_.trace("{}: cannot index!", this); return false; } checkOccurrenceNumbers(); return true; }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
/** * verifies that occurrence numbers are not negative */ public final void checkOccurrenceNumbers() { if (LOGGER_.isTraceEnabled()) LOGGER_.trace(toString() + " occurences: " + printOccurrenceNumbers()); if (positiveOccurrenceNo < 0 || negativeOccurrenceNo < 0) throw new ElkUnexpectedIndexingException(toString() + " has a negative occurrence: " + printOccurrenceNumbers()); }
final boolean updateAndCheckOccurrenceNumbers( ModifiableOntologyIndex index, OccurrenceIncrement increment) { if (!updateOccurrenceNumbers(index, increment)) { LOGGER_.trace("{}: cannot index!", this); return false; } checkOccurrenceNumbers(); return true; }
final boolean updateAndCheckOccurrenceNumbers( ModifiableOntologyIndex index, OccurrenceIncrement increment) { if (!updateOccurrenceNumbers(index, increment)) { LOGGER_.trace("{}: cannot index!", this); return false; } checkOccurrenceNumbers(); return true; }