• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2016 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.internal.invocation;
6 
7 import org.mockito.invocation.Invocation;
8 
9 import java.util.Comparator;
10 
11 /**
12  * Compares invocations based on the sequence number
13  */
14 public class InvocationComparator implements Comparator<Invocation> {
compare(Invocation o1, Invocation o2)15     public int compare(Invocation o1, Invocation o2) {
16         return Integer.valueOf(o1.getSequenceNumber()).compareTo(o2.getSequenceNumber());
17     }
18 }
19