io.sarl.apputils.bootiqueapp.utils
Class SystemPath
All Superinterfaces:
java.lang.Iterable<T>
class SystemPath
extends java.lang.Object
implements java.lang.Iterable<T>
Represents a collection of path with the OS syntax.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
bootiqueapp
Since:
0.10
Constructor Summary
Constructor and description
new
Constructor.
Action Summary
Modifier and type Action and description
void add(File)
Add an path into the collection.
void add(String)
Add an path into the collection.
void addEntries(SystemPath)
Add a set of paths into the collection.
void addEntries(String)
Add a set of paths into the collection.
void clear
Clear the system path.
boolean isEmpty
Replies the collection of paths is empty.
java.util.Iterator<E> iterator
int size
Replies the number of elements into this path.
java.util.List<E> toFileList
Replies the elements into the path as a list of files.
java.util.List<E> toFilenameList
Replies the elements into the path as a list of filenames.
java.lang.String toString
Constructor Details
new
new
Constructor.
Action Details
add(File)
def add(File)
Add an path into the collection.
Parameters:
path - the path.
add(String)
def add(String)
Add an path into the collection.
Parameters:
path - the path.
addEntries(SystemPath)
def addEntries(SystemPath)
Add a set of paths into the collection.
Parameters:
paths - the paths.
addEntries(String)
def addEntries(String)
Add a set of paths into the collection.
Parameters:
paths - the paths.
clear
def clear
Clear the system path.
isEmpty
def isEmpty : boolean
Replies the collection of paths is empty.
Returns:
true if the collection is empty.
iterator
def iterator : java.util.Iterator<E>
size
def size : int
Replies the number of elements into this path.
Returns:
the number of elements into this path.
toFileList
def toFileList : java.util.List<E>
Replies the elements into the path as a list of files.
Returns:
the list of files.
toFilenameList
def toFilenameList : java.util.List<E>
Replies the elements into the path as a list of filenames.
Returns:
the list of filenames.
toString
def toString : java.lang.String