@Override public boolean equals(Object o) { if (o == this) { return true; } else if (o instanceof FactoryExpression) { FactoryExpression<?> e = (FactoryExpression<?>) o; return args.equals(e.getArgs()) && getType().equals(e.getType()); } else { return false; } }
public static <T> FactoryExpression<T> wrap(FactoryExpression<T> expr, List<Expression<?>> conversions) { return new FactoryExpressionAdapter<T>(expr, conversions); }
public static <T> FactoryExpression<T> wrap(FactoryExpression<T> expr) { for (Expression<?> arg : expr.getArgs()) { if (arg instanceof ProjectionRole) { arg = ((ProjectionRole) arg).getProjection(); } if (arg instanceof FactoryExpression<?>) { return new FactoryExpressionAdapter<T>(expr); } } return expr; }
@Override public boolean equals(Object o) { if (o == this) { return true; } else if (o instanceof FactoryExpression) { FactoryExpression<?> e = (FactoryExpression<?>) o; return args.equals(e.getArgs()) && getType().equals(e.getType()); } else { return false; } }
public static <T> FactoryExpression<T> wrap(FactoryExpression<T> expr, List<Expression<?>> conversions) { return new FactoryExpressionAdapter<T>(expr, conversions); }
public static <T> FactoryExpression<T> wrap(FactoryExpression<T> expr) { for (Expression<?> arg : expr.getArgs()) { if (arg instanceof ProjectionRole) { arg = ((ProjectionRole) arg).getProjection(); } if (arg instanceof FactoryExpression<?>) { return new FactoryExpressionAdapter<T>(expr); } } return expr; }