Package com.sk89q.worldedit.util.io.file
Class MorePaths
java.lang.Object
com.sk89q.worldedit.util.io.file.MorePaths
-
Method Summary
Modifier and TypeMethodDescriptionStarting with the first path element, add elements until reaching this path.static Comparator<Path>
static Comparator<Path>
static Spliterator<Path>
optimizedSpliterator
(Path path) Create an efficiently-splittable spliterator for the given path elements.
-
Method Details
-
oldestFirst
-
newestFirst
-
iterPaths
Starting with the first path element, add elements until reaching this path. -
optimizedSpliterator
Create an efficiently-splittable spliterator for the given path elements.Since paths are so small, this is only useful for preventing heavy computations on later parts of the stream from occurring when using
Streams.findLast(IntStream)
, and not for parallelism.- Parameters:
path
- the path to create a spliterator for- Returns:
- the spliterator
-