testdata.CoercionClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.xtext.xbase.testing Show documentation
Show all versions of org.eclipse.xtext.xbase.testing Show documentation
Infrastructure for testing Xbase languages.
The newest version!
package testdata;
import java.util.Comparator;
/**
* @since 2.4
*/
public class CoercionClient {
public Comparator comparatorField;
private Object[] array;
public void setComparator(Comparator comp) {
this.comparatorField = comp;
}
public int compare(String s1, String s2) {
return comparatorField.compare(s1, s2);
}
public void setArray(Object[] array) {
this.array = array;
}
public void setVarArgArray(String... array) {
this.array = array;
}
public Object[] getArray() {
return array;
}
}