A List is a Collection, so the checks aren't mutually exclusive: def foo = ... boolean isCollection = foo instanceof Collection boolean isList = foo ...
確定! 回上一頁