Java Number Range Check rangeCheck(int arrayLength, int offset, int length)

Here you can find the source of rangeCheck(int arrayLength, int offset, int length)

Description

range Check

License

Open Source License

Declaration

public static boolean rangeCheck(int arrayLength, int offset, int length) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean rangeCheck(int arrayLength, int offset, int length) {
        return offset >= 0 && offset <= arrayLength && length >= 0 && length <= arrayLength - offset;
    }//from w  ww. j  a va  2s .  co  m
}

Related

  1. inrange2(double value, double min, double max)
  2. rangeCheck(double value)
  3. rangeCheck(final C start, final C end, final C step)
  4. rangeCheck(final int value, final int min, final int max)
  5. rangeCheck(int arrayLen, int fromIndex, int toIndex)
  6. rangeCheck(int index, int size)
  7. rangeCheck(int length, int fromIndex, int toIndex)
  8. rangeCheck(int value, int begin, int end)
  9. rangeCheck(int value, int min, int max)