ch.elexis.util
Class MFUList<T>
java.lang.Object
ch.elexis.util.MFUList<T>
- Type Parameters:
T
- must implement Serializable
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Iterable<T>
public class MFUList<T>
- extends java.lang.Object
- implements java.lang.Iterable<T>, java.io.Serializable
A class to keep track of the usage of certain objects
- Author:
- Gerry
- See Also:
- Serialized Form
Constructor Summary |
MFUList(int objectsToStart,
int objectsToKeep)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MFUList
public MFUList(int objectsToStart,
int objectsToKeep)
count
public void count(T obj)
getAll
public java.util.List<T> getAll()
getIndex
public int getIndex(T obj)
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T>
Copyright 2005-2011 by Gerry Weirich, Elexis