List of usage examples for java.util.function LongFunction apply
R apply(long value);
From source file:org.briljantframework.array.AbstractLongArray.java
@Override public <T> Array<T> mapToObj(LongFunction<? extends T> mapper) { Array<T> array = getArrayFactory().newArray(getShape()); for (int i = 0; i < size(); i++) { array.set(i, mapper.apply(get(i))); }/*from ww w . ja v a2 s . com*/ return array; }