Package org.apache.commons.collections.iterators

Examples of org.apache.commons.collections.iterators.IteratorEnumeration


    @Override
    public Enumeration<?> getKeys()
    {
        synchronized(lock)
        {
            return new IteratorEnumeration(session.getPropertyNamesAsSet().iterator());
        }
    }
View Full Code Here


        Enumeration<String> nameEnum = null;

        if (parameters != null)
        {
            Set<String> keys = parameters.keySet();
            nameEnum = new IteratorEnumeration(keys.iterator());

            for (Map.Entry<String, String[]> entry : parameters.entrySet())
            {
                String key = entry.getKey();
                String[] value = entry.getValue();
View Full Code Here

    }

    private Enumeration<String> keyEnumeration(Map<?, ?> map)
    {
        Set<?> keys = map.keySet();
        return new IteratorEnumeration(keys.iterator());
    }
View Full Code Here

    public Enumeration getAttributeNames() {
        if (getLogger().isDebugEnabled()) {
            getLogger().debug("CommandlineContext: getAttributeNames");
        }
        return new IteratorEnumeration(this.attributes.keySet().iterator());
    }
View Full Code Here

     */
    public Enumeration keys() {
        // TODO Find a better way
        final MemoryCache memoryCache = this.cacheManager.getCache(region).getMemoryCache();
        final Object[] keys = memoryCache.getKeyArray();
        return new IteratorEnumeration(Arrays.asList(keys).iterator());
        //return new IteratorEnumeration(this.jcs.getGroupKeys("").iterator());
    }
View Full Code Here

    public void removeAttribute(String name) {
        this.attributes.remove(name);
    }

    public Enumeration getAttributeNames() {
        return new IteratorEnumeration(this.attributes.keySet().iterator());
    }
View Full Code Here

    public void removeAttribute(String name) {
        this.attributes.remove(name);
    }

    public Enumeration getAttributeNames() {
        return new IteratorEnumeration(this.attributes.keySet().iterator());
    }
View Full Code Here

    @Override
    public Enumeration elements(final ObjectAdapter collection) {
        final TestProxyCollectionAdapter collectionDowncasted = collectionDowncasted(collection);
        final List list = EnumerationUtils.toList(collectionDowncasted.elements());
        final Collection transformedCollection = CollectionUtils.collect(list, new ObjectToAdapterTransformer());
        return new IteratorEnumeration(transformedCollection.iterator());
    }
View Full Code Here

  /**
   * Nothing is done yet.
   */
  @Override
  public Enumeration getAllAppenders() {
    return new IteratorEnumeration(getAppenderCollection().iterator());
  }
View Full Code Here

    public void removeAttribute(String name) {
        this.attributes.remove(name);
    }

    public Enumeration getAttributeNames() {
        return new IteratorEnumeration(this.attributes.keySet().iterator());
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.iterators.IteratorEnumeration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.