libgdx API

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

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

public class PooledLinkedList<T>
extends java.lang.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()
          Removs the current list item based on the iterator position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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()
Removs the current list item based on the iterator position.


clear

public void clear()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)