Package net.hydromatic.morel.compile
Class Compiler.ComparableSingletonList<E extends java.lang.Comparable<E>>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- net.hydromatic.morel.compile.Compiler.ComparableSingletonList<E>
-
- Type Parameters:
E- Element type
- All Implemented Interfaces:
java.lang.Comparable<Compiler.ComparableSingletonList<E>>,java.lang.Iterable<E>,java.util.Collection<E>,java.util.List<E>
- Enclosing class:
- Compiler
private static class Compiler.ComparableSingletonList<E extends java.lang.Comparable<E>> extends java.util.AbstractList<E> implements java.lang.Comparable<Compiler.ComparableSingletonList<E>>
A comparable singleton list.
-
-
Constructor Summary
Constructors Constructor Description ComparableSingletonList(E element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Compiler.ComparableSingletonList<E> o)Eget(int index)intsize()-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
ComparableSingletonList
ComparableSingletonList(E element)
-
-
Method Detail
-
get
public E get(int index)
-
size
public int size()
-
compareTo
public int compareTo(Compiler.ComparableSingletonList<E> o)
-
-