<s> package org . eclipse . jdt . internal . core ; import java . util . Enumeration ; public class LRUCacheEnumerator implements Enumeration { protected LRUEnumeratorElement elementQueue ; public static class LRUEnumeratorElement { public Object value ; public LRUEnumeratorElement next ; public LRUEnumeratorElement ( Object value ) { this . value = value ; } } public LRUCacheEnumerator ( LRUEnumeratorElement firstElement ) { this . elementQueue = firstElement ; } public boolean hasMoreElements ( ) { return this . elementQueue != null ; } public Object nextElement ( ) { Object temp = this . elementQueue . value ; this . elementQueue = this . elementQueue . next ; return temp ; } } </s>