Class SortedCollectionLinked<S extends java.lang.Comparable<S>>

  • All Implemented Interfaces:
    java.lang.Iterable<S>, SortedCollection<S>

    public class SortedCollectionLinked<S extends java.lang.Comparable<S>>
    extends java.lang.Object
    implements SortedCollection<S>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(S newEntry)  
      boolean contains​(S entry)  
      java.util.Iterator<S> iterator()  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • SortedCollectionLinked

        public SortedCollectionLinked()
    • Method Detail

      • iterator

        public java.util.Iterator<S> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<S extends java.lang.Comparable<S>>
      • add

        public void add​(S newEntry)
        Specified by:
        add in interface SortedCollection<S extends java.lang.Comparable<S>>
      • size

        public int size()
        Specified by:
        size in interface SortedCollection<S extends java.lang.Comparable<S>>
      • contains

        public boolean contains​(S entry)
        Specified by:
        contains in interface SortedCollection<S extends java.lang.Comparable<S>>