public static <T extends Comparable<?>> ComparableExpression<T> create(Class<T> type, Template template, Object... args) { return new ComparableTemplate<T>(type, template, ImmutableList.copyOf(args)); }
/** * Create a new Template expression * * @param cl * @param template * @param args * @return */ public static <T extends Comparable<?>> ComparableExpression<T> comparableTemplate(Class<T> cl, String template, Object... args) { return ComparableTemplate.create(cl, template, args); }
public static <T extends Comparable<?>> ComparableExpression<T> create(Class<T> type, String template, Object one, Object two) { return new ComparableTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.of(one, two)); }
public static <T extends Comparable<?>> ComparableExpression<T> create(Class<T> type, String template) { return new ComparableTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.of()); }
public static <T extends Comparable<?>> ComparableExpression<T> create(Class<T> type, String template, Object one) { return new ComparableTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.of(one)); }
public static <T extends Comparable<?>> ComparableExpression<T> create(Class<T> type, String template, Object... args) { return new ComparableTemplate<T>(type, TemplateFactory.DEFAULT.create(template), ImmutableList.copyOf(args)); }