/*
* Copyright (c) 2021 Goldman Sachs.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v. 1.0 which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*/
package org.eclipse.collections.api.block.comparator.primitive;
import java.io.Serializable;
IntComparator is a primitive Comparator that takes two arguments of type int and otherwise follows the contract of java.util.Comparator
. This comparator can be used to sort primitive collections, which support indirect sorting, if a sort order other thant the natural one of the collection elements is required. This file was automatically generated from template file primitiveComparator.stg. /**
* IntComparator is a primitive Comparator that takes two arguments of type int and
* otherwise follows the contract of {@code java.util.Comparator}.
* This comparator can be used to sort primitive collections, which support indirect sorting,
* if a sort order other thant the natural one of the collection elements is required.
*
* This file was automatically generated from template file primitiveComparator.stg.
*
*/
@FunctionalInterface
public interface IntComparator
extends Serializable
{
int compare(int value1, int value2);
}