com.github.marschall.memoryfilesystem.ElementPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of memoryfilesystem Show documentation
Show all versions of memoryfilesystem Show documentation
An in memory implementation of a JSR-203 file system.
package com.github.marschall.memoryfilesystem;
import java.util.List;
abstract class ElementPath extends AbstractPath {
ElementPath(MemoryFileSystem fileSystem) {
super(fileSystem);
}
abstract List getNameElements();
abstract String getNameElement(int index);
abstract String getLastNameElement();
@Override
int compareTo(AbstractPath other) {
if (other.isRoot()) {
return 1;
}
return this.compareToNonRoot((ElementPath) other);
}
abstract int compareToNonRoot(ElementPath other);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy