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

org.opendaylight.yangtools.binding.KeyAware Maven / Gradle / Ivy

/*
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */
package org.opendaylight.yangtools.binding;

import org.eclipse.jdt.annotation.NonNull;

/**
 * Identifiable object, which could be identified by it's key.
 *
 * @param  Identifier class for this object
 */
public sealed interface KeyAware>>
        permits EntryObject, DataObjectReference.WithKey, KeyStep {
    /**
     * Returns an unique key for the object.
     *
     * @return Key for the object
     */
    @NonNull T key();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy