All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.common.base.InverseComparator Maven / Gradle / Ivy

There is a newer version: 24.09
Show newest version
/*
 * Copyright (c) 2000, 2020, Oracle and/or its affiliates.
 *
 * Licensed under the Universal Permissive License v 1.0 as shown at
 * http://oss.oracle.com/licenses/upl.
 */
package com.oracle.common.base;

import java.util.Comparator;


/**
 * InverseComparator is a wrapper comparator which simply inverses the comparison result.
 *
 * @author mf  2014.08.28
 * @deprecated use {@link com.oracle.coherence.common.base.InverseComparator} instead
 */
@Deprecated
public class InverseComparator
        extends com.oracle.coherence.common.base.InverseComparator
    {
    // ----- constructors ---------------------------------------------------

    /**
     * Construct an InverseComparator which inverts the specified comparator.
     *
     * @param comparator the comparator to invert
     */
    public InverseComparator(Comparator comparator)
        {
        super(comparator);
        }


    // ----- constants ------------------------------------------------------

    /**
     * InverseComparator singleton which inverts a Comparable objects natural comparison order.
     */
    public static final InverseComparator INSTANCE = new InverseComparator(NaturalComparator.INSTANCE);
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy