Package mondrian.util

Class UnsupportedList<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>, List<T>
    Direct Known Subclasses:
    TraversalList

    public abstract class UnsupportedList<T>
    extends Object
    implements List<T>
    Implementation of List where all methods throw an UnsupportedOperationException exception except for the isEmpty method. The iterator and listIterator methods can be easily implemented in derived classes by using the helper inner classes: Itr and ListItr. These iterators are all read only, their remove, add and set methods throw the UnsupportedOperationException exception.

    This class can be used for List implementations that only implement a subset of all the methods.

    Since:
    Jan 16, 2007
    Author:
    Richard Emberson