public class Directory extends Object
Constructor and Description |
---|
Directory(String name,
boolean isLeaf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name.
|
boolean |
isLeaf()
Test if directory has children.
|
public Directory(String name, boolean isLeaf)
name
- name of this directoryisLeaf
- is this directory a leafpublic boolean isLeaf()
true
if this directory is a leafpublic String getName()
Copyright © 2017. All rights reserved.