Java 类org.apache.commons.collections15.list.UnmodifiableList 实例源码

项目:VarJ    文件:BeanMap.java   
/**
 * 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);
}
项目:alevin-svn2    文件:GraphPanel.java   
public final List<LV> getViewers() {
    return UnmodifiableList.decorate(vvs);
}
项目:VarJ    文件:LinkedMap.java   
public List<K> subList(int fromIndexInclusive, int toIndexExclusive) {
    return UnmodifiableList.decorate(super.subList(fromIndexInclusive, toIndexExclusive));
}
项目:crucian    文件:GraphPanel.java   
public final List<LV> getViewers() {
    return UnmodifiableList.decorate(vvs);
}
项目:Alevin    文件:GraphPanel.java   
public final List<LV> getViewers() {
    return UnmodifiableList.decorate(vvs);
}
项目:VarJ    文件:ListOrderedMap.java   
/**
 * 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);
}
项目:VarJ    文件:ListOrderedSet.java   
/**
 * Gets an unmodifiable view of the order of the Set.
 *
 * @return an unmodifiable list view
 */
public List<E> asList() {
    return UnmodifiableList.decorate(setOrder);
}
项目:VarJ    文件:CompositeCollection.java   
/**
 * 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));
}
项目:VarJ    文件:IteratorChain.java   
/**
 * Get the list of Iterators (unmodifiable)
 *
 * @return the unmodifiable list of iterators added
 */
public List<Iterator<? extends E>> getIterators() {
    return UnmodifiableList.decorate(iteratorChain);
}
项目:VarJ    文件:CollatingIterator.java   
/**
 * Gets the list of Iterators (unmodifiable).
 *
 * @return the unmodifiable list of iterators added
 */
public List<Iterator<? extends E>> getIterators() {
    return UnmodifiableList.decorate(iterators);
}