com.jdroid.github.util.MilestoneComparator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdroid-java-github Show documentation
Show all versions of jdroid-java-github Show documentation
Java Connector for GitHub API
/******************************************************************************
* 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