public interface Encoder<T> extends EncoderBase<Encoder<T>>
| Modifier and Type | Method and Description |
|---|---|
default Encoder<T> |
append(ConstExpr c) |
default <T2> Encoder2<T,T2> |
append(Encoder<T2> other) |
static Encoder<byte[]> |
bytesEnc() |
static <T> Encoder<T> |
choice(Predicate<T> predicate,
Encoder<T> then,
Encoder<T> otherwise) |
static <T> Encoder<T> |
choiceConst(Predicate<T> predicate,
ConstExpr then,
Encoder<T> otherwise) |
default Encoder<T> |
compact() |
ConstExpr |
encode(T val) |
default IntEncoder |
mapToIntEncoder(IntFunction<? extends T> mapper) |
default Encoder<T> |
prepend(ConstExpr c) |
static Encoder<CharSequence> |
stringEnc(Charset charset) |
default Encoder<T> |
zip(Encoder<T> enc2) |
default Encoder<T> prepend(ConstExpr c)
prepend in interface EncoderBase<Encoder<T>>default Encoder<T> append(ConstExpr c)
append in interface EncoderBase<Encoder<T>>default IntEncoder mapToIntEncoder(IntFunction<? extends T> mapper)
static Encoder<byte[]> bytesEnc()
static Encoder<CharSequence> stringEnc(Charset charset)
Copyright © 2016. All rights reserved.