java
hogeList.equals(fugaList);
It is possible.
Since List # equals
judges equivalence including order guarantee (strict),
It is better to say Orber By in SQL before making it a List.
If you don't mind duplicating elements, you can also convert to HashSet
and then equals
.
Recommended Posts