/* * Copyright (c) 2014 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.sal.java.api.generator; import java.util.Comparator; import org.opendaylight.yangtools.sal.binding.model.api.TypeMember; /** * Alphabetically type member {@link Comparator} which provides sorting by name for type members * (variables and methods) in generated class. * * @param */ public class AlphabeticallyTypeMemberComparator implements Comparator{ @Override public int compare(T member1, T member2) { return member1.getName().compareTo(member2.getName()); } }