Class Components
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<Component<?>>
-
- org.devacfr.maven.skins.reflow.snippet.Components
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Component<?>>,Collection<Component<?>>,List<Component<?>>,RandomAccess
public class Components extends ArrayList<Component<?>>
- Version:
- 2.4
- Author:
- Christophe Friederich
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description Components()Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Componentsempty()Component<?>first()Get the first matched element.Stringhtml()Component<?>last()Get the last matched component.-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
empty
public static Components empty()
- Returns:
- an empty Components instance
-
html
public String html()
- Returns:
- the HTML representation of all components
-
first
public Component<?> first()
Get the first matched element.- Returns:
- The first matched component, or
nullif contents is empty.
-
last
public Component<?> last()
Get the last matched component.- Returns:
- The last matched component, or
nullif contents is empty.
-
-