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

com.azure.cosmos.implementation.OverridableRequestOptions Maven / Gradle / Ivy

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.implementation;

import com.azure.cosmos.models.CosmosRequestOptions;

public interface OverridableRequestOptions extends ReadOnlyRequestOptions {
    void override(CosmosRequestOptions cosmosRequestOptions);

    default  T overrideOption(T source, T target) {
        if (source != null) {
            target = source;
        }
        return target;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy