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

com.untzuntz.ustackserverapi.MethodOrder Maven / Gradle / Ivy

There is a newer version: 2.1.115
Show newest version
package com.untzuntz.ustackserverapi;

import java.util.Comparator;

public class MethodOrder implements Comparator {

	public int compare(MethodDefinition arg0, MethodDefinition arg1) {
		
//		if (arg0.getDocumentationGroup() != null && arg1.getDocumentationGroup() != null && arg0.getDocumentationGroup().compareTo( arg1.getDocumentationGroup() ) != 0)
//			return arg0.getDocumentationGroup().compareTo( arg1.getDocumentationGroup() );
		
		System.err.println(arg0.getPath() + " => Order0 = " + arg0.getOrder() + " | " + arg1.getOrder());
		
		if (arg0.getOrder() == arg1.getOrder())
			return 0;
		
		if (arg0.getOrder() > arg1.getOrder())
			return 1;
		
		return -1;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy