174fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe/* 274fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * Copyright (C) 2018 The Android Open Source Project 374fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * 474fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * Licensed under the Apache License, Version 2.0 (the "License"); 574fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * you may not use this file except in compliance with the License. 674fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * You may obtain a copy of the License at 774fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * 874fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * http://www.apache.org/licenses/LICENSE-2.0 974fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * 1074fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * Unless required by applicable law or agreed to in writing, software 1174fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * distributed under the License is distributed on an "AS IS" BASIS, 1274fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1374fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * See the License for the specific language governing permissions and 1474fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe * limitations under the License. 1574fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe */ 1674fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe 1774fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampeimport java.lang.reflect.Method; 1874fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampeimport java.util.Comparator; 1974fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe 2074fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampepublic class MethodComparator implements Comparator<Method> { 2174fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe public int compare(Method m1, Method m2) { 2274fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe return m1.toString().compareTo(m2.toString()); 2374fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe } 2474fa8882f6de4d2755917554ab368f9859a5f995Andreas Gampe} 25