public interface CollectionFacet extends Facet
ObjectSpecifications that represent a collection.
Factories of (implementations of this) facet should ensure that a
TypeOfFacet is also attached to the same facet holder. The
getTypeOfFacet() is a convenience for this.
| Modifier and Type | Method and Description |
|---|---|
Collection<ObjectAdapter> |
collection(ObjectAdapter collectionAdapter)
Returns an unmodifiable
Collection of ObjectAdapters. |
boolean |
contains(ObjectAdapter collectionAdapter,
ObjectAdapter element) |
ObjectAdapter |
firstElement(ObjectAdapter collectionAdapter) |
TypeOfFacet |
getTypeOfFacet()
Convenience method that returns the
TypeOfFacet on this facet's
holder. |
void |
init(ObjectAdapter collectionAdapter,
ObjectAdapter[] elements)
Set the contents of this collection.
|
Iterable<ObjectAdapter> |
iterable(ObjectAdapter collectionAdapter) |
Iterator<ObjectAdapter> |
iterator(ObjectAdapter collectionAdapter) |
int |
size(ObjectAdapter collection) |
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacetint size(ObjectAdapter collection)
Iterable<ObjectAdapter> iterable(ObjectAdapter collectionAdapter)
Iterator<ObjectAdapter> iterator(ObjectAdapter collectionAdapter)
Collection<ObjectAdapter> collection(ObjectAdapter collectionAdapter)
Collection of ObjectAdapters.ObjectAdapter firstElement(ObjectAdapter collectionAdapter)
boolean contains(ObjectAdapter collectionAdapter, ObjectAdapter element)
void init(ObjectAdapter collectionAdapter, ObjectAdapter[] elements)
TypeOfFacet getTypeOfFacet()
TypeOfFacet on this facet's
holder.Copyright © 2010–2014 The Apache Software Foundation. All rights reserved.