sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23064
Re: [Question #241889]: PatternOrString interface source
Question #241889 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/241889
RaiMan proposed the following answer:
--at comment #3
It is really simply Generics<T>, where you can use anything you want as T (at least a valid Java name), in this case we use the text PatternOrString, to say:
the parameter might be a an object of type Pattern or an object of type String (with the "promise": we will check it internally and complain if it is neither String nor Pattern)
We might have used
<PleaseUseOnlyPatternOrStringBecauseThisIsWhatIsExpected>
or <YouMightGuessWhatParameterTypesAreAllowed> ;-) but this would not be
fair for someone looking at the method signature ;-)
So the Or is simply a meaningful word in this context, no operator or
something like this (you might have thought off ;-)
--at comment #2:
You might look at and try to work with version 1.1.0 from the GitHub repo: https://github.com/RaiMan/SikuliX-2014
This only makes sense if you are willing to use Maven.
If not, you have to wait:
I will start with Beta versions in a few days on launchpad (sikuli-setup-1.1.jar, usage similar to version 1.0.1)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.