RISC JKU

at.jku.risc.stout.urau.data

Class TermAtomList

  • All Implemented Interfaces:
    Poolable


    public class TermAtomList
    extends TinyList<TermAtom>
    implements Poolable
    A list of TermAtoms which is Poolable. This list in combination with object pooling can be used to avoid memory allocation and garbage collection.
    Author:
    Alexander Baumgartner
    • Method Detail

      • cleanUp

        public void cleanUp()
        Description copied from interface: Poolable
        This method is called from the Pool before the object is returned to the pool.
        Specified by:
        cleanUp in interface Poolable
      • free

        public void free()
        Clean up the references and return the object to the pool.
      • fullCleanUp

        public static void fullCleanUp()
        Cleans up the entire memory from the current object pool.
      • newObject

        public Poolable newObject()
        Description copied from interface: Poolable
        This method is called from the Pool if there is no object available to recycle.
        Specified by:
        newObject in interface Poolable
      • removeLast

        public void removeLast()
        Description copied from class: TinyList
        guarantees complexity O(1) by definition
        Specified by:
        removeLast in class TinyList<TermAtom>
      • size

        public int size()
        Description copied from class: TinyList
        guarantees complexity O(1) by definition
        Specified by:
        size in class TinyList<TermAtom>