/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Describe <code>getAttributeNames</code> method here. * * @param n an <code>int</code> VALUE * @return an <code>Enumeration</code> VALUE */ public final Enumeration getAttributeNames(final int scope) { if(scope == PortletSession.APPLICATION_SCOPE) { return new IteratorEnumeration(applicationAttributeNames.iterator()); } else { return new IteratorEnumeration(portletAttributeNames.iterator()); } }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
/** * Gets an enumeration that wraps an iterator. * * @param iterator the iterator to use, not null * @return a new enumeration * @throws NullPointerException if iterator is null */ public static Enumeration asEnumeration(Iterator iterator) { if (iterator == null) { throw new NullPointerException("Iterator must not be null"); } return new IteratorEnumeration(iterator); }
@Override public Enumeration children() { return new IteratorEnumeration(children.iterator()); }
@SuppressWarnings("unchecked") @Override public Enumeration<String> getInitParameterNames() { return new IteratorEnumeration(params.keySet().iterator()); }
/** * Enumerate the attributes of this continuation. * * @return an enumeration of strings */ public Enumeration getAttributeNames() { if (this.attributes == null) return new IteratorEnumeration(); ArrayList keys = new ArrayList(this.attributes.keySet()); return new IteratorEnumeration(keys.iterator()); }
/** * Get all parameter names. * * @return Enumeration for the (String) parameter names. */ public Enumeration getParameterNames() { return new IteratorEnumeration(values.keySet().iterator()); }
/** * @see javax.servlet.ServletRequest#getParameterNames() */ public Enumeration getParameterNames() { return new IteratorEnumeration(this.parameterMap.keySet().iterator()); }
/** * Describe <code>getParameterNames</code> method here. * * @return an <code>Enumeration</code> VALUE */ public final Enumeration getParameterNames() { return new IteratorEnumeration(parameters.keySet().iterator()); }
/** * Describe <code>getPropertyNames</code> method here. * * @return an <code>Enumeration</code> VALUE */ public final Enumeration getPropertyNames() { return new IteratorEnumeration(propeties.keySet().iterator()); }
/** * Get all parameter names. * * @return Enumeration for the (String) parameter names. */ public Enumeration getParameterNames() { return new IteratorEnumeration(values.keySet().iterator()); }
/** * Describe <code>getAttributeNames</code> method here. * * @return an <code>Enumeration</code> VALUE */ public Enumeration getAttributeNames() { return new IteratorEnumeration(attributes.keySet().iterator()); }
public Enumeration getValues(String name) { List list = (List) this.values.get(name); if (list == null) { return new Enumeration() { public boolean hasMoreElements() { return false; } public Object nextElement() { throw new NoSuchElementException(); } }; } return new IteratorEnumeration(list.iterator()); }