/* * 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.yang.model.api.type; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import org.opendaylight.yangtools.yang.model.api.TypeDefinition; public interface EmptyTypeDefinition extends TypeDefinition { static int hashCode(final @NonNull EmptyTypeDefinition type) { return TypeDefinitions.basicHashCode(type); } static boolean equals(final @NonNull EmptyTypeDefinition type, final @Nullable Object obj) { if (type == obj) { return true; } return TypeDefinitions.castIfEquals(EmptyTypeDefinition.class, type, obj) != null; } static String toString(final @NonNull EmptyTypeDefinition type) { return TypeDefinitions.toStringHelper(type).toString(); } }