Module io.github.bucket4j.core
Interface SerializationAdapter<T>
-
- All Known Implementing Classes:
DataOutputSerializationAdapter
public interface SerializationAdapter<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteBoolean(T target, boolean value)voidwriteByte(T target, byte value)voidwriteDoubleArray(T target, double[] value)voidwriteInt(T target, int value)voidwriteLong(T target, long value)voidwriteLongArray(T target, long[] value)voidwriteString(T target, String value)
-
-
-
Method Detail
-
writeBoolean
void writeBoolean(T target, boolean value) throws IOException
- Throws:
IOException
-
writeByte
void writeByte(T target, byte value) throws IOException
- Throws:
IOException
-
writeInt
void writeInt(T target, int value) throws IOException
- Throws:
IOException
-
writeLong
void writeLong(T target, long value) throws IOException
- Throws:
IOException
-
writeLongArray
void writeLongArray(T target, long[] value) throws IOException
- Throws:
IOException
-
writeDoubleArray
void writeDoubleArray(T target, double[] value) throws IOException
- Throws:
IOException
-
writeString
void writeString(T target, String value) throws IOException
- Throws:
IOException
-
-