com.googlecode.n_orm.cache
Class LIFO<T>

java.lang.Object
  extended by com.googlecode.n_orm.cache.LIFO<T>
All Implemented Interfaces:
Iterable<T>

public class LIFO<T>
extends Object
implements Iterable<T>


Nested Class Summary
static interface LIFO.Criterium
           
 
Constructor Summary
LIFO()
           
 
Method Summary
 void clear()
           
 boolean contains(T element)
           
 com.googlecode.n_orm.cache.LIFO.Node<T> findWithCriterium(LIFO.Criterium c, Object... args)
           
 com.googlecode.n_orm.cache.LIFO.Node<T> getFirstElement()
           
 Iterator<T> iterator()
          An iterator starting from the tail of the LIFO.
 T pop()
           
 void push(T element)
           
 void pushAll(LIFO<T> available)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LIFO

public LIFO()
Method Detail

pop

public T pop()

push

public void push(T element)

pushAll

public void pushAll(LIFO<T> available)

iterator

public Iterator<T> iterator()
An iterator starting from the tail of the LIFO. Supports Iterator.remove(). The iterator should be used by only one thread. Won't throw ConcurrentModificationException even if LIFO is modified (for instance by calling push(Object), Iterator.remove()}. However, it can iterate over popped or removed elements...

Specified by:
iterator in interface Iterable<T>

clear

public void clear()

findWithCriterium

public com.googlecode.n_orm.cache.LIFO.Node<T> findWithCriterium(LIFO.Criterium c,
                                                                 Object... args)

getFirstElement

public com.googlecode.n_orm.cache.LIFO.Node<T> getFirstElement()

contains

public boolean contains(T element)


Copyright © 2012. All Rights Reserved.