All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arangodb.internal.serde.InternalSerdeProvider Maven / Gradle / Ivy

There is a newer version: 7.13.0
Show newest version
package com.arangodb.internal.serde;

import com.arangodb.ContentType;
import com.arangodb.serde.ArangoSerde;
import com.arangodb.serde.ArangoSerdeProvider;

public class InternalSerdeProvider implements ArangoSerdeProvider {

    /**
     * Creates a new InternalSerde with default settings for the specified data type.
     *
     * @param contentType serialization target data type
     * @return the created InternalSerde
     */
    @Override
    public InternalSerde of(final ContentType contentType) {
        return create(contentType, null);
    }

    /**
     * Creates a new InternalSerde with default settings for the specified data type.
     *
     * @param contentType serialization target data type
     * @return the created InternalSerde
     */
    public static InternalSerde create(final ContentType contentType, ArangoSerde userSerde) {
        return new InternalSerdeImpl(InternalMapperProvider.of(contentType), userSerde);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy