[jira] [Commented] (PIVOT-999) Update code to take advantage of Java 8 features

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (PIVOT-999) Update code to take advantage of Java 8 features

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/PIVOT-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16041105#comment-16041105 ]

Roger Whitcomb commented on PIVOT-999:
--------------------------------------

Added the "getColorValue" default method to Dictionary and make one change to take advantage of it.  This is a common operation in skins.
Sending        core\src\org\apache\pivot\collections\Dictionary.java
Sending        wtk\src\org\apache\pivot\wtk\content\TableViewTextAreaCellRenderer.java
Transmitting file data ..done
Committing transaction...
Committed revision 1797962.

> Update code to take advantage of Java 8 features
> ------------------------------------------------
>
>                 Key: PIVOT-999
>                 URL: https://issues.apache.org/jira/browse/PIVOT-999
>             Project: Pivot
>          Issue Type: New Feature
>          Components: all
>    Affects Versions: 2.1
>         Environment: All
>            Reporter: Roger Whitcomb
>            Assignee: Roger Whitcomb
>
> Some features that we could potentially use include:
> * default methods in interfaces to extend features while maintaining backward compatibility
> * lambdas for such things as callbacks
> * really use functional interfaces (already kind of present, but not really used)
> * "forEach" in many places for Iterable collections



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
Loading...