Class stl_LooseList<T>

java.lang.Object
com.jackmeng.stl.stl_LooseList<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class stl_LooseList<T>
extends java.lang.Object
implements java.lang.Iterable<T>
  • Nested Class Summary

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

    Fields
    Modifier and Type Field Description
    private java.util.List<java.lang.ref.SoftReference<T>> list  
  • Constructor Summary

    Constructors
    Constructor Description
    stl_LooseList()  
  • Method Summary

    Modifier and Type Method Description
    void add​(T element)  
    T get​(int index)  
    java.util.Iterator<T> iterator()  
    void remove​(int index)  
    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
  • Field Details

    • list

      private final java.util.List<java.lang.ref.SoftReference<T>> list
  • Constructor Details

    • stl_LooseList

      public stl_LooseList()
  • Method Details

    • add

      public void add​(T element)
    • get

      public T get​(int index)
    • remove

      public void remove​(int index)
    • size

      public int size()
    • iterator

      public java.util.Iterator<T> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<T>