Class SubArrays
java.lang.Object
com.adobe.fontengine.font.postscript.SubArrays
Functionality similar to class Arrays, but which can work on parts of arrays.
Synchronization
This class represents a namespace and does not contain instance data or mutable static data. It is therefore threadsafe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanarrayCompare(byte[] a1, int a1start, byte[] a2, int a2start, int numToCompare) static booleanstringBufferCompare(StringBuffer a1, int a1start, StringBuffer a2, int a2start, int numToCompare)
-
Constructor Details
-
SubArrays
public SubArrays()
-
-
Method Details
-
arrayCompare
public static boolean arrayCompare(byte[] a1, int a1start, byte[] a2, int a2start, int numToCompare) - Parameters:
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.- Returns:
- true if the subarrays are the same, false otherwise
-
stringBufferCompare
public static boolean stringBufferCompare(StringBuffer a1, int a1start, StringBuffer a2, int a2start, int numToCompare)
-