Java Range rangeEquals(byte[] a, int aStart, byte[] b, int bStart, int length)

Here you can find the source of rangeEquals(byte[] a, int aStart, byte[] b, int bStart, int length)

Description

range Equals

License

Open Source License

Declaration

public static boolean rangeEquals(byte[] a, int aStart, byte[] b, int bStart, int length) 

Method Source Code

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

public class Main {
    public static boolean rangeEquals(byte[] a, int aStart, byte[] b, int bStart, int length) {
        assert a.length - aStart > length && b.length - bStart > length;

        for (int i = aStart, j = bStart, k = 0; k < length; k++) {
            if (a[i] != b[j])
                return false;
        }//from w  ww . java 2 s.  c  o m

        return true;
    }
}

Related

  1. rangeDivide(Integer begin, Integer end, Integer divideNum)
  2. rangeIncludes(long x, long min, long max)
  3. rangeInteger(Integer num, Integer min, Integer max)
  4. rangeLimit(float value, float min, float max)
  5. rangeLimit(int receiver, int minBound, int maxBound)