We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to call methods on arrays, e.g. .contains, like this: new String[]{'a','b'}.contains('a'). Currently it ends with:
.contains
new String[]{'a','b'}.contains('a')
EL1004E: Method call: Method contains(java.lang.String) cannot be found on type java.lang.String[]
(in Sping's SpEL as well).
Without this using arrays requires users to use custom helpers like #COLLECTIONS.asJavaList("a,b,c".split(",")).contains("b").
#COLLECTIONS.asJavaList("a,b,c".split(",")).contains("b")
Sounds simple until you realize that arrays are in fact plain objects and don't have any useful methods, so at the minimum:
ArrayOps
MethodResolver
The text was updated successfully, but these errors were encountered:
No branches or pull requests
💥 Proposal
Allow to call methods on arrays, e.g.
.contains
, like this:new String[]{'a','b'}.contains('a')
. Currently it ends with:(in Sping's SpEL as well).
Without this using arrays requires users to use custom helpers like
#COLLECTIONS.asJavaList("a,b,c".split(",")).contains("b")
.Sounds simple until you realize that arrays are in fact plain objects and don't have any useful methods, so at the minimum:
ArrayOps
MethodResolver
) and use this stand-in classThe text was updated successfully, but these errors were encountered: