@Test public void testfloatToString() throws Exception { final float[] floats = new float[] { 122353.34f, 923487.25f, -23.2394f }; final String arrayString = floatArrays.toArrayString(',', floats); assertEquals("{\"122353.34\",\"923487.25\",\"-23.2394\"}", arrayString); final String altArrayString = floatArrays.toArrayString(';', floats); assertEquals("{\"122353.34\";\"923487.25\";\"-23.2394\"}", 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);  }