1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.handler.codec;
17
18
19
20
21 public final class UnsupportedValueConverter<V> implements ValueConverter<V> {
22 @SuppressWarnings("rawtypes")
23 private static final UnsupportedValueConverter INSTANCE = new UnsupportedValueConverter();
24 private UnsupportedValueConverter() { }
25
26 @SuppressWarnings("unchecked")
27 public static <V> UnsupportedValueConverter<V> instance() {
28 return (UnsupportedValueConverter<V>) INSTANCE;
29 }
30
31 @Override
32 public V convertObject(Object value) {
33 throw new UnsupportedOperationException();
34 }
35
36 @Override
37 public V convertBoolean(boolean value) {
38 throw new UnsupportedOperationException();
39 }
40
41 @Override
42 public boolean convertToBoolean(V value) {
43 throw new UnsupportedOperationException();
44 }
45
46 @Override
47 public V convertByte(byte value) {
48 throw new UnsupportedOperationException();
49 }
50
51 @Override
52 public byte convertToByte(V value) {
53 throw new UnsupportedOperationException();
54 }
55
56 @Override
57 public V convertChar(char value) {
58 throw new UnsupportedOperationException();
59 }
60
61 @Override
62 public char convertToChar(V value) {
63 throw new UnsupportedOperationException();
64 }
65
66 @Override
67 public V convertShort(short value) {
68 throw new UnsupportedOperationException();
69 }
70
71 @Override
72 public short convertToShort(V value) {
73 throw new UnsupportedOperationException();
74 }
75
76 @Override
77 public V convertInt(int value) {
78 throw new UnsupportedOperationException();
79 }
80
81 @Override
82 public int convertToInt(V value) {
83 throw new UnsupportedOperationException();
84 }
85
86 @Override
87 public V convertLong(long value) {
88 throw new UnsupportedOperationException();
89 }
90
91 @Override
92 public long convertToLong(V value) {
93 throw new UnsupportedOperationException();
94 }
95
96 @Override
97 public V convertTimeMillis(long value) {
98 throw new UnsupportedOperationException();
99 }
100
101 @Override
102 public long convertToTimeMillis(V value) {
103 throw new UnsupportedOperationException();
104 }
105
106 @Override
107 public V convertFloat(float value) {
108 throw new UnsupportedOperationException();
109 }
110
111 @Override
112 public float convertToFloat(V value) {
113 throw new UnsupportedOperationException();
114 }
115
116 @Override
117 public V convertDouble(double value) {
118 throw new UnsupportedOperationException();
119 }
120
121 @Override
122 public double convertToDouble(V value) {
123 throw new UnsupportedOperationException();
124 }
125 }