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

org.dspace.content.CollectionNameComparator Maven / Gradle / Ivy

The newest version!
/**
 * The contents of this file are subject to the license and copyright
 * detailed in the LICENSE and NOTICE files at the root of the source
 * tree and available online at
 *
 * http://www.dspace.org/license/
 */
package org.dspace.content;

import java.io.Serializable;
import java.util.Comparator;

/**
 * Compares the names of two {@link Collection}s.
 */
public class CollectionNameComparator
    implements Comparator, Serializable {
    @Override
    public int compare(Collection collection1, Collection collection2) {
        return collection1.getName().compareTo(collection2.getName());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy