compare list with multiple attributes involving a boolean
问题 I have some classes that implement the comparator interface to sort an ArrayList by adding patient objects, I want to sort the list by multiple attributes and have no problem sorting with just Enums, however I want to override this sort by sorting with a boolean. I know I cannot use the compareTo method as it is not a Wrapper class but I am not able to find a suitable way to sort the list via boolean . Any help would be greatly appreciated. public Patient(int nhsNumber, String name, Status