@@ -8650,10 +8650,12 @@ static final public Object splice(Object list, Object value, int index) {
86508650 return outgoing;
86518651 }
86528652
8653- static public boolean[] subset(boolean list[], int start) {
8653+
8654+ static public boolean[] subset(boolean[] list, int start) {
86548655 return subset(list, start, list.length - start);
86558656 }
86568657
8658+
86578659 /**
86588660 * ( begin auto-generated from subset.xml )
86598661 *
@@ -8676,60 +8678,92 @@ static public boolean[] subset(boolean list[], int start) {
86768678 * @param count number of values to extract
86778679 * @see PApplet#splice(boolean[], boolean, int)
86788680 */
8679- static public boolean[] subset(boolean list[] , int start, int count) {
8680- boolean output[] = new boolean[count];
8681+ static public boolean[] subset(boolean[] list , int start, int count) {
8682+ boolean[] output = new boolean[count];
86818683 System.arraycopy(list, start, output, 0, count);
86828684 return output;
86838685 }
86848686
8685- static public byte[] subset(byte list[], int start) {
8687+
8688+ static public byte[] subset(byte[] list, int start) {
86868689 return subset(list, start, list.length - start);
86878690 }
86888691
8689- static public byte[] subset(byte list[], int start, int count) {
8690- byte output[] = new byte[count];
8692+
8693+ static public byte[] subset(byte[] list, int start, int count) {
8694+ byte[] output = new byte[count];
86918695 System.arraycopy(list, start, output, 0, count);
86928696 return output;
86938697 }
86948698
86958699
8696- static public char[] subset(char list[] , int start) {
8700+ static public char[] subset(char[] list , int start) {
86978701 return subset(list, start, list.length - start);
86988702 }
86998703
8700- static public char[] subset(char list[], int start, int count) {
8701- char output[] = new char[count];
8704+
8705+ static public char[] subset(char[] list, int start, int count) {
8706+ char[] output = new char[count];
87028707 System.arraycopy(list, start, output, 0, count);
87038708 return output;
87048709 }
87058710
8706- static public int[] subset(int list[], int start) {
8711+
8712+ static public int[] subset(int[] list, int start) {
87078713 return subset(list, start, list.length - start);
87088714 }
87098715
8710- static public int[] subset(int list[], int start, int count) {
8711- int output[] = new int[count];
8716+
8717+ static public int[] subset(int[] list, int start, int count) {
8718+ int[] output = new int[count];
87128719 System.arraycopy(list, start, output, 0, count);
87138720 return output;
87148721 }
87158722
8716- static public float[] subset(float list[], int start) {
8723+
8724+ static public long[] subset(long[] list, int start) {
87178725 return subset(list, start, list.length - start);
87188726 }
87198727
8720- static public float[] subset(float list[], int start, int count) {
8721- float output[] = new float[count];
8728+
8729+ static public long[] subset(long[] list, int start, int count) {
8730+ long[] output = new long[count];
87228731 System.arraycopy(list, start, output, 0, count);
87238732 return output;
87248733 }
87258734
87268735
8727- static public String [] subset(String list[] , int start) {
8736+ static public float [] subset(float[] list , int start) {
87288737 return subset(list, start, list.length - start);
87298738 }
87308739
8731- static public String[] subset(String list[], int start, int count) {
8732- String output[] = new String[count];
8740+
8741+ static public float[] subset(float[] list, int start, int count) {
8742+ float[] output = new float[count];
8743+ System.arraycopy(list, start, output, 0, count);
8744+ return output;
8745+ }
8746+
8747+
8748+ static public double[] subset(double[] list, int start) {
8749+ return subset(list, start, list.length - start);
8750+ }
8751+
8752+
8753+ static public double[] subset(double[] list, int start, int count) {
8754+ double[] output = new double[count];
8755+ System.arraycopy(list, start, output, 0, count);
8756+ return output;
8757+ }
8758+
8759+
8760+ static public String[] subset(String[] list, int start) {
8761+ return subset(list, start, list.length - start);
8762+ }
8763+
8764+
8765+ static public String[] subset(String[] list, int start, int count) {
8766+ String[] output = new String[count];
87338767 System.arraycopy(list, start, output, 0, count);
87348768 return output;
87358769 }
@@ -8740,6 +8774,7 @@ static public Object subset(Object list, int start) {
87408774 return subset(list, start, length - start);
87418775 }
87428776
8777+
87438778 static public Object subset(Object list, int start, int count) {
87448779 Class<?> type = list.getClass().getComponentType();
87458780 Object outgoing = Array.newInstance(type, count);
0 commit comments