/** * @inheritDoc */ public Enumeration getAttributeNames() { Set<String> nonPortableAttributeNames = m_nonPortalSession.getAllAttributes().keySet(); IteratorChain ic = new IteratorChain(m_attributes.keySet().iterator(),nonPortableAttributeNames.iterator()); return new IteratorEnumeration(ic); }
public Enumeration<TreeObject> enumerate() { return new IteratorEnumeration<TreeObject>(path.iterator()); }
public Enumeration<TreeObject> children() { return new IteratorEnumeration<TreeObject>(children.iterator()); }
/** * @inheritDoc */ public Enumeration getAttributeNames() { IteratorChain ic = new IteratorChain(m_attributes.keySet().iterator(),m_nonPortalSession.getAllAttributes().keySet().iterator()); return new IteratorEnumeration(ic); }
/** * Gets an enumeration that wraps an iterator. * * @param <E> the element type * @param iterator the iterator to use, may not be null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static <E> Enumeration<E> asEnumeration(final Iterator<? extends E> iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration<E>(iterator); }