Unfortunately, it makes no sense to use Collection.hashCode . A collection can be Set or List (or something else), and the two define hashCode incompatible way.
Also, for the same reason, there is no proper definition for transformedCollection1.equals(transformedCollection2) . It can either ignore the order or not (semantics of Set or List). Worse, the returned Collection is just a view, and such equals would be terribly ineffective.
I would suggest using something like ImmutableList.copyOf(transformedCollection) and working with it.
source share