Is there any standard interface or approach in collections for the situation where one might need to compare on multiple sides/objects at once?
The signature would be
compare(T... toCompare)
instead of
compare(T object1, T object2)
Aucun commentaire:
Enregistrer un commentaire