Class stl_CircularList<T>

java.lang.Object
com.jackmeng.stl.stl_CircularList<T>

public class stl_CircularList<T>
extends java.lang.Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    private static class  stl_CircularList.Node<T>  
  • Field Summary

    Fields
    Modifier and Type Field Description
    private stl_CircularList.Node<T> head  
    private stl_CircularList.Node<T> tail  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_CircularList()  
  • Method Summary

    Modifier and Type Method Description
    void add​(T data)  
    T get​(int index)  
    boolean isEmpty()  
    void remove​(int index)  
    int size()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • stl_CircularList

      public stl_CircularList()
  • Method Details

    • add

      public void add​(T data)
    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • get

      public T get​(int index)
    • remove

      public void remove​(int index)