@Test public void ComparablePathClassOfTPathOfQString() { assertEquals( "variable.property", Expressions.comparablePath( String.class, Expressions.path(Object.class, "variable"), "property") .toString()); }
@Test public void ComparablePathClassOfTString() { assertEquals("variable", Expressions.comparablePath(String.class, "variable").toString()); }
/** * Create a new variable path * * @param arg alias * @param <D> * @return expression */ @SuppressWarnings("unchecked") public static <D extends Comparable<?>> ComparablePath<D> var(D arg) { return Expressions.comparablePath((Class<D>) arg.getClass(), "var" + arg); }