eclipse-collections
eclipse-collections copied to clipboard
Change return types of some factory methods in Predicates(i.e. alwaysTrue) as generics instead of Object
Hi team,
I wonder it would be better to change return type of Predicates#alwaysTrue as generics instead of Object.
Following code does not compile right now.
Predicate<Employee> alwaysTrue = Predicates.alwaysTrue();
As far as I checked, I think we should refactor isNull, attributeIsNull, notNull, attributeNotNull, sameAs, notSameAs, instanceOf, assignableFrom, notInstanceOf, alwaysTrue, alwaysFalse methods in Predicates class.
Does this compile?
Predicates.<Employee>alwaysTrue()
No, it does not compile.