Documentation of 'org.ddogleg.struct.RecycleManagerL' Java class
RecycleManagerL
org.ddogleg.struct

Class RecycleManagerL<T>



  • public class RecycleManagerL<T>
    extends RecycleManager<T>
    RecycleManager which maintains a used list. Does not allow you to recycle individual elements
    • Constructor Summary

      Constructors 
      Constructor and Description
      RecycleManagerL(java.lang.Class<T> targetClass) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.ArrayList<T> getUsed() 
      void recycleAll()
      Puts all elements in used into unused and clears the used list
      void recycleInstance(T object)
      Call when an instance is no longer needed and can be recycled
      T requestInstance()
      Either returns a recycled instance or a new one.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RecycleManagerL

        public RecycleManagerL(java.lang.Class<T> targetClass)
    • Method Detail

      • getUsed

        public java.util.ArrayList<T> getUsed()
      • recycleAll

        public void recycleAll()
        Puts all elements in used into unused and clears the used list

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.