Lines Matching refs:size

38     public static boolean equal(byte[] array1, byte[] array2, int size)  in equal()  argument
40 for (int index = 0; index < size; index++) in equal()
59 public static boolean equal(short[] array1, short[] array2, int size) in equal() argument
61 for (int index = 0; index < size; index++) in equal()
80 public static boolean equal(int[] array1, int[] array2, int size) in equal() argument
82 for (int index = 0; index < size; index++) in equal()
101 public static boolean equal(Object[] array1, Object[] array2, int size) in equal() argument
103 for (int index = 0; index < size; index++) in equal()
137 public static boolean equalOrNull(Object[] array1, Object[] array2, int size) in equalOrNull() argument
141 equal(array1, array2, size); in equalOrNull()
151 public static int hashCode(byte[] array, int size) in hashCode() argument
155 for (int index = 0; index < size; index++) in hashCode()
170 public static int hashCode(short[] array, int size) in hashCode() argument
174 for (int index = 0; index < size; index++) in hashCode()
189 public static int hashCode(int[] array, int size) in hashCode() argument
193 for (int index = 0; index < size; index++) in hashCode()
208 public static int hashCode(Object[] array, int size) in hashCode() argument
212 for (int index = 0; index < size; index++) in hashCode()
240 public static int hashCodeOrNull(Object[] array, int size) in hashCodeOrNull() argument
242 return array == null ? 0 : hashCode(array, size); in hashCodeOrNull()
385 public static boolean[] extendArray(boolean[] array, int size) in extendArray() argument
388 if (array.length >= size) in extendArray()
394 boolean[] newArray = new boolean[size]; in extendArray()
413 int size, in ensureArraySize() argument
417 if (array.length >= size) in ensureArraySize()
420 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
425 array = new boolean[size]; in ensureArraySize()
429 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
445 public static byte[] add(byte[] array, int size, byte element) in add() argument
447 array = extendArray(array, size + 1); in add()
449 array[size] = element; in add()
464 public static byte[] insert(byte[] array, int size, int index, byte element) in insert() argument
466 array = extendArray(array, size + 1); in insert()
471 size - index); in insert()
485 public static void remove(byte[] array, int size, int index) in remove() argument
491 array[size - 1] = 0; in remove()
501 public static byte[] extendArray(byte[] array, int size) in extendArray() argument
504 if (array.length >= size) in extendArray()
510 byte[] newArray = new byte[size]; in extendArray()
529 int size, in ensureArraySize() argument
533 if (array.length >= size) in ensureArraySize()
536 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
541 array = new byte[size]; in ensureArraySize()
545 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
561 public static short[] add(short[] array, int size, short element) in add() argument
563 array = extendArray(array, size + 1); in add()
565 array[size] = element; in add()
580 public static short[] insert(short[] array, int size, int index, short element) in insert() argument
582 array = extendArray(array, size + 1); in insert()
587 size - index); in insert()
601 public static void remove(short[] array, int size, int index) in remove() argument
607 array[size - 1] = 0; in remove()
617 public static short[] extendArray(short[] array, int size) in extendArray() argument
620 if (array.length >= size) in extendArray()
626 short[] newArray = new short[size]; in extendArray()
645 int size, in ensureArraySize() argument
649 if (array.length >= size) in ensureArraySize()
652 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
657 array = new short[size]; in ensureArraySize()
661 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
677 public static int[] add(int[] array, int size, int element) in add() argument
679 array = extendArray(array, size + 1); in add()
681 array[size] = element; in add()
696 public static int[] insert(int[] array, int size, int index, int element) in insert() argument
698 array = extendArray(array, size + 1); in insert()
703 size - index); in insert()
717 public static void remove(int[] array, int size, int index) in remove() argument
723 array[size - 1] = 0; in remove()
733 public static int[] extendArray(int[] array, int size) in extendArray() argument
736 if (array.length >= size) in extendArray()
742 int[] newArray = new int[size]; in extendArray()
761 int size, in ensureArraySize() argument
765 if (array.length >= size) in ensureArraySize()
768 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
773 array = new int[size]; in ensureArraySize()
777 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
793 public static long[] add(long[] array, int size, long element) in add() argument
795 array = extendArray(array, size + 1); in add()
797 array[size] = element; in add()
812 public static long[] insert(long[] array, int size, int index, long element) in insert() argument
814 array = extendArray(array, size + 1); in insert()
819 size - index); in insert()
833 public static void remove(long[] array, int size, int index) in remove() argument
839 array[size - 1] = 0; in remove()
849 public static long[] extendArray(long[] array, int size) in extendArray() argument
852 if (array.length >= size) in extendArray()
858 long[] newArray = new long[size]; in extendArray()
877 int size, in ensureArraySize() argument
881 if (array.length >= size) in ensureArraySize()
884 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
889 array = new long[size]; in ensureArraySize()
893 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
909 public static Object[] add(Object[] array, int size, Object element) in add() argument
911 array = extendArray(array, size + 1); in add()
913 array[size] = element; in add()
928 public static Object[] insert(Object[] array, int size, int index, Object element) in insert() argument
930 array = extendArray(array, size + 1); in insert()
935 size - index); in insert()
949 public static void remove(Object[] array, int size, int index) in remove() argument
955 array[size - 1] = null; in remove()
965 public static Object[] extendArray(Object[] array, int size) in extendArray() argument
968 if (array.length >= size) in extendArray()
974 Object[] newArray = (Object[])Array.newInstance(array.getClass().getComponentType(), size); in extendArray()
993 int size, in ensureArraySize() argument
997 if (array.length >= size) in ensureArraySize()
1000 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()
1005 array = (Object[])Array.newInstance(array.getClass().getComponentType(), size); in ensureArraySize()
1009 Arrays.fill(array, 0, size, initialValue); in ensureArraySize()