1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file 2 // for details. All rights reserved. Use of this source code is governed by a 3 // BSD-style license that can be found in the LICENSE file. 4 package com.android.tools.r8.graph; 5 6 import com.android.tools.r8.naming.NamingLens; 7 8 public interface PresortedComparable<T> extends Presorted, Comparable<T> { 9 // Slow comparison methods that make no use of indices for comparisons. These are used 10 // for sorting operations when reading dex files. slowCompareTo(T other)11 int slowCompareTo(T other); slowCompareTo(T other, NamingLens namingLens)12 int slowCompareTo(T other, NamingLens namingLens); 13 // Layered comparison methods that make use of indices for subpart comparisons. These rely 14 // on subparts already being sorted and having indices assigned. layeredCompareTo(T other, NamingLens namingLens)15 int layeredCompareTo(T other, NamingLens namingLens); 16 } 17