Lines Matching full:size
35 * @param size the size of the arrays to be checked.
38 public static boolean equal(byte[] array1, byte[] array2, int size) in equal() argument
40 for (int index = 0; index < size; index++) in equal()
56 * @param size the size of the arrays to be checked.
59 public static boolean equal(short[] array1, short[] array2, int size) in equal() argument
61 for (int index = 0; index < size; index++) in equal()
77 * @param size the size of the arrays to be checked.
80 public static boolean equal(int[] array1, int[] array2, int size) in equal() argument
82 for (int index = 0; index < size; index++) in equal()
98 * @param size the size of the arrays to be checked.
101 public static boolean equal(Object[] array1, Object[] array2, int size) in equal() argument
103 for (int index = 0; index < size; index++) in equal()
134 * @param size the size of the arrays to be checked.
137 public static boolean equalOrNull(Object[] array1, Object[] array2, int size) in equalOrNull() argument
141 equal(array1, array2, size); in equalOrNull()
148 * @param size the size of the array to be taken into account.
151 public static int hashCode(byte[] array, int size) in hashCode() argument
155 for (int index = 0; index < size; index++) in hashCode()
167 * @param size the size of the array to be taken into account.
170 public static int hashCode(short[] array, int size) in hashCode() argument
174 for (int index = 0; index < size; index++) in hashCode()
186 * @param size the size of the array to be taken into account.
189 public static int hashCode(int[] array, int size) in hashCode() argument
193 for (int index = 0; index < size; index++) in hashCode()
205 * @param size the size of the array to be taken into account.
208 public static int hashCode(Object[] array, int size) in hashCode() argument
212 for (int index = 0; index < size; index++) in hashCode()
237 * @param size the size of the array to be taken into account.
240 public static int hashCodeOrNull(Object[] array, int size) in hashCodeOrNull() argument
242 return array == null ? 0 : hashCode(array, size); in hashCodeOrNull()
249 * @param size1 the size of the first array.
251 * @param size2 the size of the second array.
283 * @param size1 the size of the first array.
285 * @param size2 the size of the second array.
317 * @param size1 the size of the first array.
319 * @param size2 the size of the second array.
351 * @param size1 the size of the first array.
353 * @param size2 the size of the second array.
380 * Ensures the given array has a given size.
382 * @param size the target size of the array.
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()
405 * Ensures the given array has a given size.
407 * @param size the target size of the array.
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()
441 * @param size the original size of the array.
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()
459 * @param size the original size of the array.
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()
482 * @param size the original size of the array.
485 public static void remove(byte[] array, int size, int index) in remove() argument
491 array[size - 1] = 0; in remove()
496 * Ensures the given array has a given size.
498 * @param size the target size of the array.
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()
521 * Ensures the given array has a given size.
523 * @param size the target size of the array.
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()
557 * @param size the original size of the array.
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()
575 * @param size the original size of the array.
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()
598 * @param size the original size of the array.
601 public static void remove(short[] array, int size, int index) in remove() argument
607 array[size - 1] = 0; in remove()
612 * Ensures the given array has a given size.
614 * @param size the target size of the array.
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()
637 * Ensures the given array has a given size.
639 * @param size the target size of the array.
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()
673 * @param size the original size of the array.
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()
691 * @param size the original size of the array.
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()
714 * @param size the original size of the array.
717 public static void remove(int[] array, int size, int index) in remove() argument
723 array[size - 1] = 0; in remove()
728 * Ensures the given array has a given size.
730 * @param size the target size of the array.
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()
753 * Ensures the given array has a given size.
755 * @param size the target size of the array.
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()
789 * @param size the original size of the array.
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()
807 * @param size the original size of the array.
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()
830 * @param size the original size of the array.
833 public static void remove(long[] array, int size, int index) in remove() argument
839 array[size - 1] = 0; in remove()
844 * Ensures the given array has a given size.
846 * @param size the target size of the array.
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()
869 * Ensures the given array has a given size.
871 * @param size the target size of the array.
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()
905 * @param size the original size of the array.
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()
923 * @param size the original size of the array.
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()
946 * @param size the original size of the array.
949 public static void remove(Object[] array, int size, int index) in remove() argument
955 array[size - 1] = null; in remove()
960 * Ensures the given array has a given size.
962 * @param size the target size of the array.
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()
985 * Ensures the given array has a given size.
987 * @param size the target size of the array.
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()