JAVA / Sikulix 2.0.4 / findBestList() refuses to accept an ArrayList<Pattern>
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.
IntelliJ IDEA marks 'listOfPatterns' in red and gives me the following error:
'findBestList(
Any pointers on what I'm doing wrong here?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Nir for more information if necessary.