[jboss-jira] [JBoss JIRA] (JBRULES-3268) Support for varargs needed
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Mon Apr 2 00:09:48 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Proctor reassigned JBRULES-3268:
-------------------------------------
Assignee: Mario Fusco (was: Mark Proctor)
> Support for varargs needed
> --------------------------
>
> Key: JBRULES-3268
> URL: https://issues.jboss.org/browse/JBRULES-3268
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-core
> Affects Versions: 5.3.0.Final
> Reporter: Martin A
> Assignee: Mario Fusco
> Priority: Minor
>
> I have a method such as:
> /*
> * determines if any of the events passed as parameter has occurred
> */
> public boolean hasAnyEventOccurred(String... events) {
>
> for (String s : events) {
> if (hasEventOccurred(s)) {
> return true;
> }
> }
>
> return false;
> }
> However in rules I can't call it like that:
> hasAnyEventOccurred("event1", "event2", "event3"), I have to workaround as so: hasAnyEventOccurred(new String[] {"event1", "event2", "event3"})
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list