polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Merlin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ZEST-36) Java 8 Predicates to be used for Constraints?
Date Mon, 20 Jul 2015 12:26:04 GMT

     [ https://issues.apache.org/jira/browse/ZEST-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul Merlin updated ZEST-36:
----------------------------
    Fix Version/s: 3.0

> Java 8 Predicates to be used for Constraints?
> ---------------------------------------------
>
>                 Key: ZEST-36
>                 URL: https://issues.apache.org/jira/browse/ZEST-36
>             Project: Zest
>          Issue Type: Improvement
>            Reporter: Niclas Hedhman
>             Fix For: 3.0
>
>
> In Java 8, the Predicate class is suitable to be used for Constraints. And I think we
should leverage the versatility of this on Ver 3.0
> The difference is that the Predicate.test() method is lacking the Annotation argument,
which often used to pass arguments to the constraint. But we can equally easily inject the
annotation instead.
> I think that that org.qi4j.api.constraint.Constraint class has no purpose, other than
for compatibility reason, but I might be wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message