Example usage for java.util.function ToLongFunction applyAsLong

List of usage examples for java.util.function ToLongFunction applyAsLong

Introduction

In this page you can find the example usage for java.util.function ToLongFunction applyAsLong.

Prototype

long applyAsLong(T value);

Source Link

Document

Applies this function to the given argument.

Usage

From source file:org.eclipse.packagedrone.utils.rpm.build.RpmBuilder.java

private static boolean needLong(final Collection<FileEntry> files, final ToLongFunction<FileEntry> func) {
    return files.stream().anyMatch(file -> func.applyAsLong(file) > Integer.MAX_VALUE);
}