open class BooleanComparator : Comparator<Boolean>, Serializable
A Comparator for Boolean objects that can sort either true or false first.
Author
Keith Donald
Since
1.2.2
BooleanComparator(trueLow: Boolean)
Create a BooleanComparator that sorts boolean values based on the provided flag. Alternatively, you can use the default shared instances: |
static val TRUE_HIGH: BooleanComparator
A shared default instance of this comparator, treating |
|
static val TRUE_LOW: BooleanComparator
A shared default instance of this comparator, treating |
open fun compare(v1: Boolean, v2: Boolean): Int |
|
open fun equals(other: Any?): Boolean |
|
open fun hashCode(): Int |
|
open fun toString(): String |