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.yangtools.util;
10 import com.google.common.annotations.Beta;
11 import java.util.UUID;
12 import org.opendaylight.yangtools.concepts.Identifier;
15 * Utility {@link Identifier} backed by a {@link UUID}.
17 * @author Robert Varga
20 public abstract class AbstractUUIDIdentifier<T extends AbstractUUIDIdentifier<T>> extends AbstractIdentifier<UUID>
21 implements Comparable<T> {
22 private static final long serialVersionUID = 1L;
24 protected AbstractUUIDIdentifier(final UUID uuid) {
29 public final int compareTo(final T o) {
30 return getValue().compareTo(o.getValue());