protected abstract void serializeObject()

in serialization/src/main/java/com/twitter/serial/serializer/ObjectSerializer.java [73:91]


    protected abstract void serializeObject(@NotNull SerializationContext context,
            @NotNull SerializerOutput output, @NotNull T object) throws IOException;

    @Nullable
    @Override
    public T deserialize(@NotNull SerializationContext context, @NotNull SerializerInput input)
            throws IOException, ClassNotFoundException {
        if (SerializationUtils.readNullIndicator(input)) {
            return null;
        }
        final int deserializedVersionNumber = input.readObjectStart();
        if (deserializedVersionNumber > mVersionNumber) {
            throw new SerializationException("Version number found (" + deserializedVersionNumber + ") is " +
                    "greater than the maximum supported value (" + mVersionNumber + ")");
        }
        final T deserializedObject = deserializeObject(context, input, deserializedVersionNumber);
        input.readObjectEnd();
        return deserializedObject;
    }