/*
 * Copyright (c) 2016 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */
package org.mockito.internal.invocation;

import org.mockito.invocation.Invocation;

import java.util.Comparator;

/**
 * Compares invocations based on the sequence number
 */
public class InvocationComparator implements Comparator<Invocation> {
    public int compare(Invocation o1, Invocation o2) {
        return Integer.valueOf(o1.getSequenceNumber()).compareTo(o2.getSequenceNumber());
    }
}
