You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jeff Maxwell (JIRA)" <ji...@apache.org> on 2017/01/31 18:49:51 UTC
[jira] (AVRO-1961) [JAVA] Generate getters that return an Optional
[ https://issues.apache.org/jira/browse/AVRO-1961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15847288#comment-15847288 ]
Jeff Maxwell commented on AVRO-1961:
------------------------------------
For supported primitives (int, double, long) it may be preferential to return their respective specialized versions ([OptionalInt|https://docs.oracle.com/javase/8/docs/api/java/util/OptionalInt.html], [OptionalDouble|https://docs.oracle.com/javase/8/docs/api/java/util/OptionalDouble.html], [OptionalLong|https://docs.oracle.com/javase/8/docs/api/java/util/OptionalLong.html]).
> [JAVA] Generate getters that return an Optional
> -----------------------------------------------
>
> Key: AVRO-1961
> URL: https://issues.apache.org/jira/browse/AVRO-1961
> Project: Avro
> Issue Type: New Feature
> Reporter: Niels Basjes
> Assignee: Niels Basjes
> Priority: Minor
>
> A colleague of mine indicated that having getters that return an Optional (java 8 thingy) would be very useful for him.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)