Class FlatLists.ComparableEmptyList<T>

  • Type Parameters:
    T - element type
    All Implemented Interfaces:
    java.lang.Comparable<java.util.List>, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, FlatLists.ComparableList<T>
    Enclosing class:

    private static class FlatLists.ComparableEmptyList<T>
    extends java.util.AbstractList<T>
    implements FlatLists.ComparableList<T>
    Empty list that implements the Comparable interface.
    • Field Summary

      • Fields inherited from class java.util.AbstractList

    • Constructor Summary

      Modifier Constructor Description
      private ComparableEmptyList()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.util.List o)  
      boolean equals​(java.lang.Object o)  
      T get​(int index)  
      int hashCode()  
      int size()  
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, clear, 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
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, subList, toArray, toArray
    • Constructor Detail

      • ComparableEmptyList

        private ComparableEmptyList()
    • Method Detail

      • get

        public T get​(int index)
        Specified by:
        get in interface java.util.List<T>
        Specified by:
        get in class java.util.AbstractList<T>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<T>
        Specified by:
        hashCode in interface java.util.List<T>
        hashCode in class java.util.AbstractList<T>
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<T>
        Specified by:
        equals in interface java.util.List<T>
        equals in class java.util.AbstractList<T>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<T>
        Specified by:
        size in interface java.util.List<T>
        Specified by:
        size in class java.util.AbstractCollection<T>
      • compareTo

        public int compareTo​(java.util.List o)
        Specified by:
        compareTo in interface java.lang.Comparable<T>