mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
This commit is contained in:
parent
e4a8ecdee8
commit
b5d5d1d2b0
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.EBoolean;
|
||||
@ -23,12 +22,12 @@ public class OBoolean extends EBoolean implements Operation<Boolean, Boolean> {
|
||||
private final Op<Boolean> op;
|
||||
|
||||
public OBoolean(Op<Boolean> op, Expr<?>... args) {
|
||||
this(op, asList(args));
|
||||
this(op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public OBoolean(Op<Boolean> op, List<Expr<?>> args) {
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.EComparable;
|
||||
@ -26,13 +25,13 @@ public class OComparable<OpType, D extends Comparable<?>> extends
|
||||
private final Op<OpType> op;
|
||||
|
||||
public OComparable(Class<D> type, Op<OpType> op, Expr<?>... args) {
|
||||
this(type, op, asList(args));
|
||||
this(type, op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public OComparable(Class<D> type, Op<OpType> op, List<Expr<?>> args) {
|
||||
super(type);
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.ENumber;
|
||||
@ -26,13 +25,13 @@ public class ONumber<OpType extends Number, D extends Number & Comparable<?>>
|
||||
private final Op<OpType> op;
|
||||
|
||||
public ONumber(Class<? extends D> type, Op<OpType> op, Expr<?>... args) {
|
||||
this(type, op, asList(args));
|
||||
this(type, op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public ONumber(Class<? extends D> type, Op<OpType> op, List<Expr<?>> args) {
|
||||
super(type);
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.ESimple;
|
||||
@ -26,13 +25,13 @@ public class OSimple<OpType, D> extends ESimple<D> implements
|
||||
private final Op<OpType> op;
|
||||
|
||||
public OSimple(Class<D> type, Op<OpType> op, Expr<?>... args) {
|
||||
this(type, op, asList(args));
|
||||
this(type, op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public OSimple(Class<D> type, Op<OpType> op, List<Expr<?>> args) {
|
||||
super(type);
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.EString;
|
||||
@ -23,12 +22,12 @@ public class OString extends EString implements Operation<String, String> {
|
||||
private final Op<String> op;
|
||||
|
||||
public OString(Op<String> op, Expr<?>... args) {
|
||||
this(op, asList(args));
|
||||
this(op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public OString(Op<String> op, List<Expr<?>> args) {
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
@ -5,9 +5,8 @@
|
||||
*/
|
||||
package com.mysema.query.types.operation;
|
||||
|
||||
import static java.util.Arrays.asList;
|
||||
import static java.util.Collections.unmodifiableList;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.mysema.query.types.expr.Expr;
|
||||
@ -23,13 +22,13 @@ public class OStringArray extends Expr<String[]> implements
|
||||
private final Op<String> op;
|
||||
|
||||
public OStringArray(Op<String> op, Expr<?>... args) {
|
||||
this(op, asList(args));
|
||||
this(op, Arrays.asList(args));
|
||||
}
|
||||
|
||||
public OStringArray(Op<String> op, List<Expr<?>> args) {
|
||||
super(null);
|
||||
this.op = op;
|
||||
this.args = unmodifiableList(args);
|
||||
this.args = Collections.unmodifiableList(args);
|
||||
validate();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user