@Test public void testdoubleToString() throws Exception { final double[] doubles = new double[] { 122353.345, 923487.235987, -23.239486 }; final String arrayString = doubleArrays.toArrayString(',', doubles); assertEquals("{\"122353.345\",\"923487.235987\",\"-23.239486\"}", arrayString); final String altArrayString = doubleArrays.toArrayString(';', doubles); assertEquals("{\"122353.345\";\"923487.235987\";\"-23.239486\"}", altArrayString); }
public abstract String toArrayString(char delim, A array);
PrimitiveArraySupport { public abstract String toArrayString(char delim, A array); }
PrimitiveArraySupport { public abstract String toArrayString(char delim, A array);  }
PrimitiveArraySupport { public abstract String toArrayString(char delim, A array);  abstract int getDefaultArrayTypeOid(TypeInfo tiCache); abstract String toArrayString(char delim, A array); abstract void appendArray(StringBuilder sb, char delim, A array); boolean supportBinaryRepresentation(); abstract byte[] toBinaryRepresentation(Connection connection, A array); static boolean isSupportedPrimitiveArray(Object obj); static PrimitiveArraySupport<A> getArraySupport(A array); }
PrimitiveArraySupport { public abstract String toArrayString(char delim, A array);  abstract int getDefaultArrayTypeOid(TypeInfo tiCache); abstract String toArrayString(char delim, A array); abstract void appendArray(StringBuilder sb, char delim, A array); boolean supportBinaryRepresentation(); abstract byte[] toBinaryRepresentation(Connection connection, A array); static boolean isSupportedPrimitiveArray(Object obj); static PrimitiveArraySupport<A> getArraySupport(A array);  }