Interface BooleanComparator<T>

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface BooleanComparator<T>
extends Serializable
BooleanComparator is a primitive Comparator that takes two arguments of type boolean and otherwise follows the contract of java.util.Comparator. This comparator can be used to sort primitive collections, which support indirect sorting, if a sort order other thant the natural one of the collection elements is required. This file was automatically generated from template file primitiveComparator.stg.
  • Method Summary

    Modifier and Type Method Description
    int compare​(boolean value1, boolean value2)  
  • Method Details

    • compare

      int compare​(boolean value1, boolean value2)