"Guava Eclipse Plugin" is an eclipse plugin which will generate following methods using Google guava utility classes or jdk utility classes toString() [STRG + SHIFT + 4] - equals(Object object) & hashCode() [STRG + SHIFT + 5] - compareTo(...) [STRG + SHIFT + 6]
The user should be able to define the "Task Tag" of comments in compareTo Method.
Example:
current:
@Override
public int compareTo(SampleBean that) {
return ComparisonChain.start().compare(this.testInt, that.testInt)
.compare(this.testString, that.testString)
// XXX field 'testObject' java.lang.Object is not comparable
//.compare(this.testObject, that.testObject)
.result();
}
define your own:
@Override
public int compareTo(SampleBean that) {
return ComparisonChain.start().compare(this.testInt, that.testInt)
.compare(this.testString, that.testString)
// FIXME field 'testObject' java.lang.Object is not comparable
//.compare(this.testObject, that.testObject)
.result();
}
The user should be able to define the "Task Tag" of comments in compareTo Method.
Example: current:
define your own: