Package org.infinispan.commons.util
Class EnumerationList<T>
- java.lang.Object
-
- org.infinispan.commons.util.ForwardingList<T>
-
- org.infinispan.commons.util.EnumerationList<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,List<T>
public class EnumerationList<T> extends ForwardingList<T>
An Enumeration → List adaptor- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description EnumerationList(Enumeration<T> enumeration)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<T>
delegate()
-
Methods inherited from class org.infinispan.commons.util.ForwardingList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Constructor Detail
-
EnumerationList
public EnumerationList(Enumeration<T> enumeration)
Constructor- Parameters:
enumeration
- The enumeration
-
-
Method Detail
-
delegate
protected List<T> delegate()
- Specified by:
delegate
in classForwardingList<T>
-
-