com.azure.core.util.NoopConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-core Show documentation
Show all versions of azure-core Show documentation
This package contains core types for Azure Java clients.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.util;
import java.util.function.Function;
/*
* Noop Configuration used to opt out of using global configurations when constructing client libraries.
*/
class NoopConfiguration extends Configuration {
@SuppressWarnings("deprecation")
NoopConfiguration() {
}
@Override
public String get(String name) {
return null;
}
@Override
public T get(String name, T defaultValue) {
return defaultValue;
}
@Override
public T get(String name, Function converter) {
return null;
}
@Override
@Deprecated
public NoopConfiguration put(String name, String value) {
return this;
}
@Override
@Deprecated
public String remove(String name) {
return null;
}
@Override
public boolean contains(String name) {
return false;
}
@Override
@SuppressWarnings("CloneDoesntCallSuperClone")
@Deprecated
public NoopConfiguration clone() {
return new NoopConfiguration();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy