public final class SubArrays extends Object
| Constructor and Description |
|---|
SubArrays() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
arrayCompare(byte[] a1,
int a1start,
byte[] a2,
int a2start,
int numToCompare) |
static boolean |
stringBufferCompare(StringBuffer a1,
int a1start,
StringBuffer a2,
int a2start,
int numToCompare) |
public static boolean arrayCompare(byte[] a1,
int a1start,
byte[] a2,
int a2start,
int numToCompare)
a1 - The first buffer to comparea1start - The offset into a1 to begin comparinga2 - The second buffer to comparea2start - The offset into a2 to begin comparingnumToCompare - If numToCompare extends beyond the end of a1 and a2, arrayCompare only
compares to the end of the buffers.public static boolean stringBufferCompare(StringBuffer a1, int a1start, StringBuffer a2, int a2start, int numToCompare)
Copyright © 2010 - 2020 Adobe. All Rights Reserved