Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package bpiwowar.experiments;
 
 public class TaskName implements Comparable<TaskName> {

Parameters:
packageName Given in reverse order
name
	public TaskName(PackageName packageNameString name) {
		super();
		this. = packageName;
		this. = name;
	}
	public int compareTo(TaskName o) {
		int z = o.packageName.compareTo(o.packageName);
		if (z != 0)
			return z;
		// The task name
		return .compareTo(o.name);
	}
	public String toString() {
		return String.format("%s (%s)");
	}
New to GrepCode? Check out our FAQ X