com.badlogic.gdx.utils
Class PooledLinkedList<T>

java.lang.Object
  extended by com.badlogic.gdx.utils.PooledLinkedList<T>

public class PooledLinkedList<T>
extends Object

A simple linked list that pools its nodes.

Author:
mzechner

Constructor Summary
PooledLinkedList(int maxPoolSize)
           
 
Method Summary
 void add(T object)
           
 void clear()
           
 void iter()
          Starts iterating over the lists items
 T next()
          Gets the next item in the list
 void remove()
          Removes the current list item based on the iterator position.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PooledLinkedList

public PooledLinkedList(int maxPoolSize)
Method Detail

add

public void add(T object)

iter

public void iter()
Starts iterating over the lists items


next

public T next()
Gets the next item in the list

Returns:
the next item in the list or null if there are no more items

remove

public void remove()
Removes the current list item based on the iterator position.


clear

public void clear()


Copyright © 2014. All Rights Reserved.