Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * 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.model.implementation; import com.microsoft.azure.arm.model.Indexable; import java.util.UUID;
The base implementation for Indexable.
/** * The base implementation for {@link Indexable}. */
abstract class IndexableImpl implements Indexable { protected String key; protected IndexableImpl() { this(UUID.randomUUID().toString()); } protected IndexableImpl(String key) { this.key = key; } @Override public String key() { return this.key; } @Override public String toString() { return this.key(); } }