Keys have a name and an ASCII marshaller used for serialization.
(String name, boolean pseudo, AsciiMarshaller<T> marshaller)
| 968 | |
| 969 | /** Keys have a name and an ASCII marshaller used for serialization. */ |
| 970 | private AsciiKey(String name, boolean pseudo, AsciiMarshaller<T> marshaller) { |
| 971 | super(name, pseudo, marshaller); |
| 972 | Preconditions.checkArgument( |
| 973 | !name.endsWith(BINARY_HEADER_SUFFIX), |
| 974 | "ASCII header is named %s. Only binary headers may end with %s", |
| 975 | name, |
| 976 | BINARY_HEADER_SUFFIX); |
| 977 | this.marshaller = Preconditions.checkNotNull(marshaller, "marshaller"); |
| 978 | } |
| 979 | |
| 980 | @Override |
| 981 | byte[] toBytes(T value) { |
nothing calls this directly
no test coverage detected