avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Maxwell (JIRA)" <j...@apache.org>
Subject [jira] (AVRO-1961) [JAVA] Generate getters that return an Optional
Date Tue, 31 Jan 2017 18:49:51 GMT

    [ 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)

Mime
View raw message