gw.fs.AdditionalDirectory Maven / Gradle / Ivy
package gw.fs;
/*
* Copyright 2014 Guidewire Software, Inc.
*/
import java.util.ArrayList;
import java.util.List;
/**
*/
public class AdditionalDirectory extends DelegateDirectory {
public AdditionalDirectory( IDirectory delegate ) {
super( delegate );
}
@Override
public List extends IDirectory> listDirs() {
List result = new ArrayList();
for (IDirectory dir : getDelegate().listDirs()) {
result.add(new AdditionalDirectory(dir));
}
return result;
}
@Override
public boolean isAdditional() {
return true;
}
}