|
Java example source code file (TestFunction.java)
The TestFunction.java Java example source codepackage org.deeplearning4j.spark.text; import org.apache.spark.api.java.function.Function; import java.util.List; /** * Created by jeffreytang on 8/14/15. */ public class TestFunction implements Function<Integer, Integer> { public TestFunction(List<Integer> lst) { this.lst = lst; } public List<Integer> getLst() { return lst; } public int getA() { return a; } private List<Integer> lst; private int a; @Override public Integer call(Integer i) { lst.add(i); a = 1000; return i + 1; } } Other Java examples (source code examples)Here is a short list of links related to this Java TestFunction.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.