Java 类org.apache.commons.collections4.iterators.IteratorEnumeration 实例源码

项目:sakai    文件:MySession.java   
/**
 * @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);
}
项目:sakai    文件:MySession.java   
/**
 * @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);
}
项目:GitDirStat    文件:TreeObjectPath.java   
public Enumeration<TreeObject> enumerate() {
    return new IteratorEnumeration<TreeObject>(path.iterator());
}
项目:GitDirStat    文件:TreeObject.java   
public Enumeration<TreeObject> children() {
    return new IteratorEnumeration<TreeObject>(children.iterator());
}
项目:sakai    文件:MyLittleSession.java   
/**
 * @inheritDoc
 */
public Enumeration getAttributeNames()
{
    IteratorChain ic = new IteratorChain(m_attributes.keySet().iterator(),m_nonPortalSession.getAllAttributes().keySet().iterator());
    return new IteratorEnumeration(ic);
}
项目:GitDirStat    文件:TreeObjectPath.java   
public Enumeration<TreeObject> enumerate() {
    return new IteratorEnumeration<TreeObject>(path.iterator());
}
项目:GitDirStat    文件:TreeObject.java   
public Enumeration<TreeObject> children() {
    return new IteratorEnumeration<TreeObject>(children.iterator());
}
项目:sakai    文件:MyLittleSession.java   
/**
 * @inheritDoc
 */
public Enumeration getAttributeNames()
{
    IteratorChain ic = new IteratorChain(m_attributes.keySet().iterator(),m_nonPortalSession.getAllAttributes().keySet().iterator());
    return new IteratorEnumeration(ic);
}
项目:HCFCore    文件:IteratorUtils.java   
/**
 * 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);
}
项目:HCFCore    文件:IteratorUtils.java   
/**
 * 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);
}