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

com.jdroid.github.util.MilestoneComparator Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
/******************************************************************************
 *  Copyright (c) 2011 GitHub Inc.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *    Kevin Sawicki (GitHub Inc.) - initial API and implementation
 *****************************************************************************/
package com.jdroid.github.util;

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

import com.jdroid.github.Milestone;

/**
 * Milestone comparator using case-insensitive name comparisons.
 */
public class MilestoneComparator implements Comparator, Serializable {

	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 7166479273639101758L;

	public int compare(Milestone m1, Milestone m2) {
		return m1.getTitle().compareToIgnoreCase(m2.getTitle());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy