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

com.microsoft.kiota.serialization.ParsableFactory Maven / Gradle / Ivy

package com.microsoft.kiota.serialization;

import jakarta.annotation.Nonnull;

/**
 * Defines the factory for creating parsable objects.
 * @param  The type of the parsable object.
 */
@FunctionalInterface
public interface ParsableFactory {
    /**
     * Create a new parsable object from the given serialized data.
     * @param parseNode The node to parse use to get the discriminator value from the payload.
     * @return The parsable object.
     */
    T create(@Nonnull final ParseNode parseNode);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy