Class CheckIntrinsics


  • public final class CheckIntrinsics
    extends java.lang.Object
    Simple index checks.

    On Java 9 these checks are replaced with the corresponding Objects methods, which perform better.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int checkFromIndexSize​(int fromIndex, int size, int length)  
      static int checkFromToIndex​(int fromIndex, int toIndex, int length)  
      static int checkIndex​(int index, int length)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkIndex

        public static int checkIndex​(int index,
                                     int length)
      • checkFromToIndex

        public static int checkFromToIndex​(int fromIndex,
                                           int toIndex,
                                           int length)
      • checkFromIndexSize

        public static int checkFromIndexSize​(int fromIndex,
                                             int size,
                                             int length)