You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2015/07/17 15:25:04 UTC
[jira] [Resolved] (FLINK-2359) Add factory methods to the Java
TupleX types
[ https://issues.apache.org/jira/browse/FLINK-2359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabian Hueske resolved FLINK-2359.
----------------------------------
Resolution: Fixed
Fix Version/s: 0.10
Implemented with 2d191ab05fff3392697fbce8dd909003c86d34e1
Thanks for the contribution!
> Add factory methods to the Java TupleX types
> --------------------------------------------
>
> Key: FLINK-2359
> URL: https://issues.apache.org/jira/browse/FLINK-2359
> Project: Flink
> Issue Type: Improvement
> Components: Java API
> Affects Versions: 0.10
> Reporter: Gabor Gevay
> Assignee: Gabor Gevay
> Priority: Minor
> Fix For: 0.10
>
>
> The compiler doesn't infer generic type arguments from constructor arguments, which means that we have to call Tuple constructors like this:
> Tuple2<Integer, String> = new Tuple2<Integer, String>(5, "foo");
> I propose adding a factory method, which would provide the following alternative:
> Tuple2<Integer, String> = Tuple2.create(5, "foo");
> (Note that C++ and C# Tuples also have similar factory methods for the same reason.)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)