RISC JKU

at.jku.risc.stout.urau.util

Class CoordList

  • All Implemented Interfaces:
    Poolable


    public class CoordList
    extends TinyList<int[]>
    implements Poolable
    A pooled list of x,y coordinates.
    Author:
    Alexander Baumgartner
    • Method Detail

      • add

        public void add(int x,
               int y)
      • 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
      • contains

        public boolean contains(int x,
                       int y)
      • 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.
      • get

        public int[] get(int i)
        Description copied from class: TinyList
        guarantees complexity O(1) by definition
        Specified by:
        get in class TinyList<int[]>
      • 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
      • obtainList

        public static CoordList obtainList()
      • removeLast

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

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