Lines Matching refs:arr

600     protected static <T> T getFromArray(T[] arr, int index) {
601 if (arr == null || index < 0 || index >= arr.length) {
604 return arr[index];
608 protected static <T> void setTo(T[] arr, int index, T value) {
609 if (arr == null || index < 0 || index >= arr.length) {
612 arr[index] = value;
616 protected static boolean getFromArray(boolean[] arr, int index) {
617 if (arr == null || index < 0 || index >= arr.length) {
620 return arr[index];
624 protected static void setTo(boolean[] arr, int index, boolean value) {
625 if (arr == null || index < 0 || index >= arr.length) {
628 arr[index] = value;
632 protected static byte getFromArray(byte[] arr, int index) {
633 if (arr == null || index < 0 || index >= arr.length) {
636 return arr[index];
640 protected static void setTo(byte[] arr, int index, byte value) {
641 if (arr == null || index < 0 || index >= arr.length) {
644 arr[index] = value;
648 protected static short getFromArray(short[] arr, int index) {
649 if (arr == null || index < 0 || index >= arr.length) {
652 return arr[index];
656 protected static void setTo(short[] arr, int index, short value) {
657 if (arr == null || index < 0 || index >= arr.length) {
660 arr[index] = value;
664 protected static char getFromArray(char[] arr, int index) {
665 if (arr == null || index < 0 || index >= arr.length) {
668 return arr[index];
672 protected static void setTo(char[] arr, int index, char value) {
673 if (arr == null || index < 0 || index >= arr.length) {
676 arr[index] = value;
680 protected static int getFromArray(int[] arr, int index) {
681 if (arr == null || index < 0 || index >= arr.length) {
684 return arr[index];
688 protected static void setTo(int[] arr, int index, int value) {
689 if (arr == null || index < 0 || index >= arr.length) {
692 arr[index] = value;
696 protected static long getFromArray(long[] arr, int index) {
697 if (arr == null || index < 0 || index >= arr.length) {
700 return arr[index];
704 protected static void setTo(long[] arr, int index, long value) {
705 if (arr == null || index < 0 || index >= arr.length) {
708 arr[index] = value;
712 protected static float getFromArray(float[] arr, int index) {
713 if (arr == null || index < 0 || index >= arr.length) {
716 return arr[index];
720 protected static void setTo(float[] arr, int index, float value) {
721 if (arr == null || index < 0 || index >= arr.length) {
724 arr[index] = value;
728 protected static double getFromArray(double[] arr, int index) {
729 if (arr == null || index < 0 || index >= arr.length) {
732 return arr[index];
736 protected static void setTo(double[] arr, int index, double value) {
737 if (arr == null || index < 0 || index >= arr.length) {
740 arr[index] = value;