/** * Get the list of Iterators (unmodifiable) * * @return the unmodifiable list of iterators added */ public List getIterators() { return UnmodifiableList.decorate(iteratorChain); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new UnmodifiableList(sub); }
public Iterator iterator() { return UnmodifiableIterator.decorate(getCollection().iterator()); }
public ListIterator listIterator(int index) { return UnmodifiableListIterator.decorate(getList().listIterator(index)); }
/** * Factory method to create an unmodifiable list. * * @param list the list to decorate, must not be null * @throws IllegalArgumentException if list is null */ public static List decorate(List list) { if (list instanceof Unmodifiable) { return list; } return new UnmodifiableList(list); }
public ListIterator listIterator() { return UnmodifiableListIterator.decorate(getList().listIterator()); }
/** * Factory method to create an unmodifiable list. * * @param list the list to decorate, must not be null * @throws IllegalArgumentException if list is null */ public static List decorate(List list) { if (list instanceof Unmodifiable) { return list; } return new UnmodifiableList(list); }
/** * Gets an unmodifiable view of the order of the Set. * * @return an unmodifiable list view */ public List asList() { return UnmodifiableList.decorate(setOrder); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new UnmodifiableList(sub); }
public ListIterator listIterator(int index) { return UnmodifiableListIterator.decorate(getList().listIterator(index)); }
/** * Factory method to create an unmodifiable list. * * @param list the list to decorate, must not be null * @throws IllegalArgumentException if list is null */ public static List decorate(List list) { if (list instanceof Unmodifiable) { return list; } return new UnmodifiableList(list); }
public Iterator iterator() { return UnmodifiableIterator.decorate(getCollection().iterator()); }
/** * Gets the list of Iterators (unmodifiable). * * @return the unmodifiable list of iterators added */ public List getIterators() { return UnmodifiableList.decorate(iterators); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new UnmodifiableList(sub); }
public ListIterator listIterator() { return UnmodifiableListIterator.decorate(getList().listIterator()); }
/** * Factory method to create an unmodifiable list. * * @param list the list to decorate, must not be null * @throws IllegalArgumentException if list is null */ public static List decorate(List list) { if (list instanceof Unmodifiable) { return list; } return new UnmodifiableList(list); }
public Iterator iterator() { return UnmodifiableIterator.decorate(getCollection().iterator()); }
/** * Returns an unmodifiable list backed by the given list. * <p> * This method uses the implementation in the decorators subpackage. * * @param list the list to make unmodifiable, must not be null * @return an unmodifiable list backed by the given list * @throws IllegalArgumentException if the list is null */ public static List unmodifiableList(List list) { return UnmodifiableList.decorate(list); }
public List subList(int fromIndex, int toIndex) { List sub = getList().subList(fromIndex, toIndex); return new UnmodifiableList(sub); }
public ListIterator listIterator() { return UnmodifiableListIterator.decorate(getList().listIterator()); }