Here you can find the source of isPermission(Path p, Function
private static boolean isPermission(Path p, Function<Path, Boolean> function)
//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 }