if (object instanceof StyleRange) style = (StyleRange)object; else return false; if (this.start != style.start) return false; if (this.length != style.length) return false; return similarTo(style);
if (object instanceof StyleRange) { StyleRange style = (StyleRange)object; if (this.start != style.start) return false; if (this.length != style.length) return false; return similarTo(style); } return false;
public boolean equals(Object object) {	StyleRange style;	if (object == this) return true;	if (object instanceof StyleRange) style = (StyleRange)object;	else return false;	if (this.start != style.start) return false;	if (this.length != style.length) return false;	return similarTo(style);}