Package org.zkoss.idom.impl
Class AbstractGroup.ElementMap
java.lang.Object
org.zkoss.idom.impl.AbstractGroup.ElementMap
- Enclosing class:
- AbstractGroup
Stores a 'cached' map of child elements to speed up the access.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanany()Returns true if any element.final ElementGet the element with name.Get a readonly list of all elements with name.names()Returns a readonly set of names of all elements.final voidPut an element into the map.final voidRemove e from the map.final intsize()Returns the number of elements.
-
Constructor Details
-
ElementMap
protected ElementMap()
-
-
Method Details
-
put
Put an element into the map. If the "following" argument is assocaied the same name, we will add the element before the "following". -
get
Get the element with name. If you have many values associated with the same key, it returned the head for you. -
getAll
Get a readonly list of all elements with name. -
remove
Remove e from the map. -
any
public final boolean any()Returns true if any element. -
names
Returns a readonly set of names of all elements. -
size
public final int size()Returns the number of elements.
-