MCPcopy Create free account
hub / github.com/ArtifexSoftware/mupdf / formatFloatArray

Method formatFloatArray

platform/java/example/PDFTrace.java:29–38  ·  view source on GitHub ↗
(float[] array, String suffix)

Source from the content-addressed store, hash-verified

27public class PDFTrace extends PDFProcessor
28{
29 protected String formatFloatArray(float[] array, String suffix) {
30 StringBuilder sb = new StringBuilder("[ ");
31 int n = array.length;
32 for (int i = 0; i < n; i++)
33 sb.append(array[i] + " ");
34 sb.append(']');
35 if (suffix != null)
36 sb.append(suffix);
37 return sb.toString();
38 }
39
40 protected String formatString(String s, String suffix) {
41 StringBuilder sb = new StringBuilder("(");

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected