Java Path File Check nio isPermission(Path p, Function function)

Here you can find the source of isPermission(Path p, Function function)

Description

is Permission

License

Open Source License

Declaration

private static boolean isPermission(Path p, Function<Path, Boolean> function) 

Method Source Code


//package com.java2s;

import java.nio.file.Path;
import java.util.Objects;
import java.util.function.Function;

public class Main {
    private static boolean isPermission(Path p, Function<Path, Boolean> function) {
        Objects.requireNonNull(p);
        Objects.requireNonNull(function);
        return function.apply(p);
    }// w w  w .  j  a v  a 2s.  c  o m
}

Related

  1. isOva(final Path filePath)
  2. isParent(Path parent, Path child)
  3. isParent(Path parent, Path path)
  4. isParentOf(Path possibleParent, Path possibleChild)
  5. isPath(Class clazz)
  6. isPictureFile(Path file)
  7. isRegularUsable(final Path pathToFile, final LinkOption... linkOption)
  8. isSame(Path expected, Path actual)
  9. isSameFile(Path path1, Path path2)