View Javadoc
1   package org.pojomatic.internal;
2   
3   import java.lang.reflect.AnnotatedElement;
4   
5   import org.pojomatic.formatter.EnhancedPropertyFormatter;
6   import org.pojomatic.formatter.PropertyFormatter;
7   
8   @Deprecated
9   public class EnhancedPropertyFormatterWrapper implements EnhancedPropertyFormatter {
10    private final PropertyFormatter delegate;
11  
12    public EnhancedPropertyFormatterWrapper(PropertyFormatter delegate) {
13      this.delegate = delegate;
14    }
15  
16    @Override
17    public void initialize(AnnotatedElement element) {
18      delegate.initialize(element);
19    }
20  
21    @Override
22    public String format(Object value) {
23      return delegate.format(value);
24    }
25  
26    @Override public void appendFormatted(StringBuilder builder, Object o) { builder.append(delegate.format(o)); }
27    @Override public void appendFormatted(StringBuilder builder, boolean b) { builder.append(delegate.format(b)); }
28    @Override public void appendFormatted(StringBuilder builder, byte b) { builder.append(delegate.format(b)); }
29    @Override public void appendFormatted(StringBuilder builder, short s) { builder.append(delegate.format(s)); }
30    @Override public void appendFormatted(StringBuilder builder, char c) { builder.append(delegate.format(c)); }
31    @Override public void appendFormatted(StringBuilder builder, int i) { builder.append(delegate.format(i)); }
32    @Override public void appendFormatted(StringBuilder builder, long l) { builder.append(delegate.format(l)); }
33    @Override public void appendFormatted(StringBuilder builder, float f) { builder.append(delegate.format(f)); }
34    @Override public void appendFormatted(StringBuilder builder, double d) { builder.append(delegate.format(d)); }
35    @Override public void appendFormatted(StringBuilder builder, boolean[] b) { builder.append(delegate.format(b)); }
36    @Override public void appendFormatted(StringBuilder builder, byte[] b) { builder.append(delegate.format(b)); }
37    @Override public void appendFormatted(StringBuilder builder, short[] s) { builder.append(delegate.format(s)); }
38    @Override public void appendFormatted(StringBuilder builder, char[] c) { builder.append(delegate.format(c)); }
39    @Override public void appendFormatted(StringBuilder builder, int[] i) { builder.append(delegate.format(i)); }
40    @Override public void appendFormatted(StringBuilder builder, long[] l) { builder.append(delegate.format(l)); }
41    @Override public void appendFormatted(StringBuilder builder, float[] f) { builder.append(delegate.format(f)); }
42    @Override public void appendFormatted(StringBuilder builder, double[] d) { builder.append(delegate.format(d)); }
43    @Override public void appendFormatted(StringBuilder builder, Object[] o) { builder.append(delegate.format(o)); }
44  
45    @Override public void appendFormattedPossibleArray(StringBuilder builder, Object o) {
46      builder.append(delegate.format(o));
47    }
48  }