sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55024
[Question #690699]: JAVA / Sikulix 2.0.4 / findBestList() refuses to accept an ArrayList<Pattern>
New question #690699 on Sikuli:
https://answers.launchpad.net/sikuli/+question/690699
Hello RaiMan,
Working with SikuliX 2.0.4 in Java.
I'm trying to work with findBestList() for the first time and I can't seem to figure out why it refuses to accept an ArrayList<Pattern> as a parameter.
I read the Region documentation and the way I understand it - my list should be accepted.
Below is the method call, 'listOfPatterns' is an ArrayList that I build elsewhere in the code and pass here, it contains several Sikulix 'Pattern' objects:
Match match = region.findBestList(listOfPatterns);
IntelliJ IDEA marks 'listOfPatterns' in red and gives me the following error:
'findBestList(java.util.List<java.lang.Object>)' in 'org.sikuli.script.Region' cannot be applied to '(java.util.List<org.sikuli.script.Pattern>)'
Any pointers on what I'm doing wrong here?
Thanks!
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.