|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.cotta.PathContent
public class PathContent
A value object holds a list of path for files and a list of path for directories. This is used by the file system implementations to return two list in one method call
| Constructor Summary | |
|---|---|
PathContent(java.util.Collection<TPath> directories,
java.util.Collection<TPath> files)
Create path content directly with the two lists |
|
PathContent(int totalSize)
Create an empty path content. |
|
| Method Summary | |
|---|---|
void |
addDirectoryPath(TPath path)
Add a path of the directory |
void |
addFilePath(TPath path)
Add a path of the file |
java.util.List<TPath> |
dirs()
Get the list of the paths of the directories |
java.util.List<TPath> |
files()
Get the list of the paths of the files |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathContent(int totalSize)
totalSize - total size of the content. This parameter is used to determine the inital size of the list to create
public PathContent(java.util.Collection<TPath> directories,
java.util.Collection<TPath> files)
directories - list of paths to the directoriesfiles - list of paths to the files| Method Detail |
|---|
public java.util.List<TPath> files()
public java.util.List<TPath> dirs()
public void addDirectoryPath(TPath path)
path - path of the directorypublic void addFilePath(TPath path)
path - path of the file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||