com.jmw.tzap.groupers
Class ParentDirGrouper

java.lang.Object
  extended by com.jmw.tzap.groupers.ParentDirGrouper
All Implemented Interfaces:
Grouper

public class ParentDirGrouper
extends java.lang.Object
implements Grouper

Groups an array of files by their parent directory.


Constructor Summary
ParentDirGrouper()
           
 
Method Summary
 java.util.ArrayList group(FilterFile[] files)
          Performs the group operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentDirGrouper

public ParentDirGrouper()
Method Detail

group

public java.util.ArrayList group(FilterFile[] files)
Performs the group operation.

Specified by:
group in interface Grouper
Parameters:
files - an array containing the files to be grouped
Returns:
an ArrayList of ArrayLists which each contain one group.