"alesj" wrote :
| Too late, re-invented. :-)
|
| | if (Objects.isArray(value))
| | {
| | if (Objects.isArray(other) == false)
| | return Boolean.FALSE;
| |
| | int length = Array.getLength(value);
| | if (length != Array.getLength(other))
| | return Boolean.FALSE;
| |
| | for (int i = 0; i < length; i++)
| | {
| | if (JBossObject.equals(Array.get(value, i), Array.get(other, i))
== false)
| | return Boolean.FALSE;
| | }
| | }
| |
As annotation can only take single dimension arrays as values this is fine.
But since I'm already fixing this:
-
http://lists.jboss.org/pipermail/jboss-development/2008-October/012837.html
I'll add a generic arrays equal to common-core.
Unless this is already done somewhere, and I just cannot find it. ;-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186158#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...