Class SingletonList

All Implemented Interfaces:
Iterable, Collection, List, SequencedCollection

public class SingletonList extends AbstractList
A utility class that implements singleton lists (to avoid dependency on JDK 1.3). Many operations including add() and remove() throw UnsupportedOperationExceptions.
Version:
1.2b12
Author:
Attila Szegedi
  • Constructor Details

    • SingletonList

      public SingletonList(Object element)
      Creates a new singleton list.
      Parameters:
      element - the single member of the list
  • Method Details