"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "hsqldb/src/org/hsqldb/lib/ArrayUtil.java" between
hsqldb-2.6.0.zip and hsqldb-2.6.1.zip

About: HSQLDB (HyperSQL DataBase) is a SQL relational database engine written in Java. It supports nearly full ANSI-92 SQL (BNF format) and full core SQL:2008.

ArrayUtil.java  (hsqldb-2.6.0):ArrayUtil.java  (hsqldb-2.6.1)
skipping to change at line 40 skipping to change at line 40
package org.hsqldb.lib; package org.hsqldb.lib;
import java.lang.reflect.Array; import java.lang.reflect.Array;
import java.util.Arrays; import java.util.Arrays;
/** /**
* Collection of static methods for operations on arrays * Collection of static methods for operations on arrays
* *
* @author Fred Toussi (fredt@users dot sourceforge.net) * @author Fred Toussi (fredt@users dot sourceforge.net)
* @version 2.6.0 * @version 2.6.1
* @since 1.7.2 * @since 1.7.2
*/ */
public final class ArrayUtil { public final class ArrayUtil {
public static final int CLASS_CODE_BYTE = 'B'; public static final int CLASS_CODE_BYTE = 'B';
public static final int CLASS_CODE_CHAR = 'C'; public static final int CLASS_CODE_CHAR = 'C';
public static final int CLASS_CODE_DOUBLE = 'D'; public static final int CLASS_CODE_DOUBLE = 'D';
public static final int CLASS_CODE_FLOAT = 'F'; public static final int CLASS_CODE_FLOAT = 'F';
public static final int CLASS_CODE_INT = 'I'; public static final int CLASS_CODE_INT = 'I';
public static final int CLASS_CODE_LONG = 'J'; public static final int CLASS_CODE_LONG = 'J';
skipping to change at line 310 skipping to change at line 310
for (int i = offset; i < offset + count; i++) { for (int i = offset; i < offset + count; i++) {
if (array[i] == value) { if (array[i] == value) {
return i; return i;
} }
} }
return -1; return -1;
} }
public static int find(char[] array, int value) {
for (int i = 0; i < array.length; i++) {
if (array[i] == value) {
return i;
}
}
return -1;
}
/** /**
* Finds the first element of the array that is not equal to the given value . * Finds the first element of the array that is not equal to the given value .
* *
* @param array int[] * @param array int[]
* @param value int * @param value int
* @return int * @return int
*/ */
public static int findNot(int[] array, int value) { public static int findNot(int[] array, int value) {
for (int i = 0; i < array.length; i++) { for (int i = 0; i < array.length; i++) {
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)