if(end>=this.length)throw new IllegalArgumentException("end, " + end + ", is greater than the highest index, " + (this.length-1));
if(this.suppressMessages)Conv.suppressMessages();
Phasor[] retArray = Phasor.oneDarray(this.length);
switch(this.type){
case 0:
case 1: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(((Double)this.array.get(i)).doubleValue());
break;
case 2:
case 3: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(((Float)this.array.get(i)).doubleValue());
break;
case 4:
case 5: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_Long_to_double((Long)this.array.get(i)));
break;
case 6:
case 7: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_Integer_to_double((Integer)this.array.get(i)));
break;
case 8:
case 9: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_Short_to_double((Short)this.array.get(i)));
break;
case 10:
case 11: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_Byte_to_double((Byte)this.array.get(i)));
break;
case 12: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_BigDecimal_to_double((BigDecimal)this.array.get(i)));
break;
case 13: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_BigInteger_to_double((BigInteger)this.array.get(i)));
break;
case 14: for(int i=start; i<=end; i++)retArray[i-start] = Conv.convert_Complex_to_Phasor((Complex)this.array.get(i));
break;
case 15: for(int i=start; i<=end; i++)retArray[i-start] = (Phasor)this.array.get(i);
break;
case 18: for(int i=start; i<=end; i++){
String ss = ((String)this.array.get(i)).trim();
if(ss.indexOf('<')!=-1 || ss.indexOf('L')!=-1){
retArray[i-start] = Phasor.valueOf(ss);
}
else{
retArray[i-start] = new Phasor(Double.valueOf(ss));
}
}
break;
case 16:
case 17: for(int i=start; i<=end; i++)retArray[i-start] = new Phasor(Conv.convert_int_to_double((int)((Character)this.array.get(i)).charValue()));
break;
default: throw new IllegalArgumentException("Data type not identified by this method");
}
Conv.restoreMessages();
return retArray;