uk.org.simonsite.log4j.appender
Class LogFileList

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by uk.org.simonsite.log4j.appender.LogFileList
All Implemented Interfaces:
Iterable, Collection, List

final class LogFileList
extends AbstractList
implements List

Responsible for listing, sorting, and filtering log file lists.

This class is not thread-safe.

Version:
3.6
Author:
Simon Park

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LogFileList(File baseFile, FilenameFilter filenameFilter, AppenderRollingProperties properties)
           
 
Method Summary
(package private)  File firstFile()
           
 Object get(int index)
           
(package private)  File lastFile()
           
 Object remove(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Constructor Detail

LogFileList

LogFileList(File baseFile,
            FilenameFilter filenameFilter,
            AppenderRollingProperties properties)
Method Detail

get

public final Object get(int index)
Specified by:
get in interface List
Specified by:
get in class AbstractList

remove

public final Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class AbstractList

size

public final int size()
Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

firstFile

final File firstFile()
Returns:
The first File in the list, or null if the list is empty.

lastFile

final File lastFile()
Returns:
The last File in the list, or null if the list is empty.