|
$(DDOC_MODULE_MEMBERS author: Doug Lea @version 0.93 For an introduction to this package see Overview .
@param index the index to start adding at @param e the elements to add Returns: condition: foreach (int i in 0 .. index-1) at(i).equals(PREV(this)at(i)); && All existing elements at indices at or greater than index have their indices incremented by the number of elements traversable via e.get() && The new elements are at indices index + their order in the enumeration's get traversal. !(e.more()) && (version() != PREV(this).version()) == PREV(e).more() Throws: IllegalElementException if !canInclude some element of e; this may or may not nullify the effect of insertions of other elements. Throws: NoSuchElementException if index is not in range 0..size() Throws: CorruptedIteratorException is propagated if raised; this may or may not nullify the effects of insertions of other elements. Returns: condition: size() == PREV(this).size()+1 && at(index).equals(element) && foreach (int i in 0 .. index-1) get(i).equals(PREV(this).get(i)) foreach (int i in index+1..size()-1) get(i).equals(PREV(this).get(i-1)) Version change: always Throws: NoSuchElementException if index is not in range 0..size() Throws: IllegalElementException if !canInclude(element) Returns: condition: size() == PREV(this).size() && at(index).equals(element) && no spurious effects Version change <-- !element.equals(PREV(this).get(index) (but MAY change even if equal).) Throws: NoSuchElementException if index is not in range 0..size()-1 Throws: IllegalElementException if !canInclude(element) Returns: condition: size() == PREV(this).size() && at(index).equals(element) && no spurious effects Version change <-- !element.equals(PREV(this).get(index) (but MAY change even if equal).) Throws: NoSuchElementException if index is not in range 0..size()-1 Throws: IllegalElementException if !canInclude(element) Returns: condition: size() = PREV(this).size()-1 && foreach (int i in 0..index-1) get(i).equals(PREV(this).get(i)); && foreach (int i in index..size()-1) get(i).equals(PREV(this).get(i+1)); Version change: always Throws: NoSuchElementException if index is not in range 0..size()-1 Throws: IllegalElementException if !canInclude(element) Throws: IllegalElementException if !canInclude(element) Throws: NoSuchElementException if isEmpty for (int i = fromIndex; i <= toIndex; ++i) remove(fromIndex);@param index the index of the first element to remove @param index the index of the last element to remove Returns: condition: let n = max(0, toIndex - fromIndex + 1 in size() == PREV(this).size() - 1 && for (int i in 0 .. fromIndex - 1) get(i).equals(PREV(this).get(i)) && for (int i in fromIndex .. size()- 1) get(i).equals(PREV(this).get(i+n) Version change iff n > 0) Throws: NoSuchElementException if fromIndex or toIndex is not in range 0..size()-1 ) |
| :: page rendered by CandyDoc |