Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.util
Class MFUList<T>

java.lang.Object
  extended by 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)
           
 
Method Summary
 void count(T obj)
           
 java.util.List<T> getAll()
           
 int getIndex(T obj)
           
 java.util.Iterator<T> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MFUList

public MFUList(int objectsToStart,
               int objectsToKeep)
Method Detail

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>

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis