Interface SortCheck

All Known Implementing Classes:
ByteReverseSortCheck, ByteSortCheck, CharReverseSortCheck, CharSortCheck, DoubleReverseSortCheck, DoubleSortCheck, FloatReverseSortCheck, FloatSortCheck, IntReverseSortCheck, IntSortCheck, LongReverseSortCheck, LongSortCheck, ObjectReverseSortCheck, ObjectSortCheck, ShortReverseSortCheck, ShortSortCheck

public interface SortCheck
  • Method Summary

    Modifier and Type Method Description
    static SortCheck make​(ChunkType chunkType, boolean reverse)  
    int sortCheck​(Chunk<? extends Attributes.Values> valuesToCheck)
    Verify that the provided values are in order.
  • Method Details

    • sortCheck

      int sortCheck​(Chunk<? extends Attributes.Values> valuesToCheck)
      Verify that the provided values are in order.
      Parameters:
      valuesToCheck - a chunk of values to check for out of order elements
      Returns:
      the first position of an out-of-order element, or -1 if all elements are in order
    • make

      static SortCheck make​(ChunkType chunkType, boolean reverse)