All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.marschall.memoryfilesystem.ElementPath Maven / Gradle / Ivy

There is a newer version: 2.8.1
Show newest version
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