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

com.microsoft.azure.arm.dag.VoidIndexable Maven / Gradle / Ivy

There is a newer version: 1.7.14
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */

package com.microsoft.azure.arm.dag;

import com.microsoft.azure.arm.model.Indexable;

import java.util.Objects;

/**
 * Represents an index-able model, when used as return type of a method,
 * it indicates invocation of the method may cause side-effect but does
 * not produce a value.
 */
public final class VoidIndexable implements Indexable {
    /**
     * The key.
     */
    private final String key;

    /**
     * Creates VoidIndexable.
     *
     * @param key the key.
     */
    public VoidIndexable(String key) {
        Objects.requireNonNull(key);
        this.key = key;
    }

    @Override
    public String key() {
        return this.key;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy