2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.mdsal.singleton.common.api;
10 import java.io.Serial;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.util.AbstractStringIdentifier;
15 * Identifier represents a service group competence. It's based on String.
17 public class ServiceGroupIdentifier extends AbstractStringIdentifier<ServiceGroupIdentifier> {
19 private static final long serialVersionUID = 6853612584804702662L;
21 protected ServiceGroupIdentifier(final @NonNull String string) {
26 * Method to create immutable instances of {@link ServiceGroupIdentifier}.
28 * @param name the String identifier for the ServiceGroupIdentifier instance
29 * @return {@link ServiceGroupIdentifier} new instance
31 public static @NonNull ServiceGroupIdentifier create(final String name) {
32 return new ServiceGroupIdentifier(name);
35 public final @NonNull String getName() {