/** * Returns the values for the BeanMap. * * @return values for the BeanMap. The returned collection is not * modifiable. */ public Collection<Object> values() { ArrayList answer = new ArrayList(readMethods.size()); for (Iterator iter = valueIterator(); iter.hasNext();) { answer.add(iter.next()); } return UnmodifiableList.decorate(answer); }
public final List<LV> getViewers() { return UnmodifiableList.decorate(vvs); }
public List<K> subList(int fromIndexInclusive, int toIndexExclusive) { return UnmodifiableList.decorate(super.subList(fromIndexInclusive, toIndexExclusive)); }
/** * Gets an unmodifiable List view of the keys which changes as the map changes. * <p/> * The returned list is unmodifiable because changes to the values of * the list (using {@link java.util.ListIterator#set(Object)}) will * effectively remove the value from the list and reinsert that value at * the end of the list, which is an unexpected side effect of changing the * value of a list. This occurs because changing the key, changes when the * mapping is added to the map and thus where it appears in the list. * <p/> * An alternative to this method is to use {@link #keySet()}. * * @return The ordered list of keys. * @see #keySet() */ public List<K> asList() { return UnmodifiableList.decorate(insertOrder); }
/** * Gets an unmodifiable view of the order of the Set. * * @return an unmodifiable list view */ public List<E> asList() { return UnmodifiableList.decorate(setOrder); }
/** * Gets the collections15 being decorated. * * @return Unmodifiable collection of all collections15 in this composite. */ public Collection<Collection<E>> getCollections() { return UnmodifiableList.decorate(Arrays.asList(this.all)); }
/** * Get the list of Iterators (unmodifiable) * * @return the unmodifiable list of iterators added */ public List<Iterator<? extends E>> getIterators() { return UnmodifiableList.decorate(iteratorChain); }
/** * Gets the list of Iterators (unmodifiable). * * @return the unmodifiable list of iterators added */ public List<Iterator<? extends E>> getIterators() { return UnmodifiableList.decorate(iterators); }