protected class Element.AttrArray extends NotableLinkedList<Attribute>
Modifier | Constructor and Description |
---|---|
protected |
Element.AttrArray() |
Modifier and Type | Method and Description |
---|---|
protected void |
onAdd(Attribute newElement,
Attribute followingElement)
Called each time an new element is about being added into the array.
|
protected void |
onRemove(Attribute item)
Called each time an element is about being removed from the array.
|
protected void |
onSet(Attribute newElement,
Attribute replaced)
Called each time an element is about being assigned into the array
and replace an existence one (by ListIterator.set).
|
listIterator, size
add, addAll, get, iterator, remove, set
add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
protected void onAdd(Attribute newElement, Attribute followingElement)
NotableLinkedList
Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
onAdd
in class NotableLinkedList<Attribute>
newElement
- the element to be addedfollowingElement
- the element that will 'follow' the new element.
In other words, newElement will be inserted before
followingElement. If null, it means newElement is appended at the endprotected void onSet(Attribute newElement, Attribute replaced)
NotableLinkedList
Deriving classes usually put checking codes here. And, throws exception if failure and nothing will be affected.
onSet
in class NotableLinkedList<Attribute>
newElement
- the element to be addedreplaced
- the element to be replacedprotected void onRemove(Attribute item)
NotableLinkedList
onRemove
in class NotableLinkedList<Attribute>
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.