blob: 02b2ce4a5efc7fa99cd983262130f550cb7d79ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package pl.edu.mimuw.cloudatlas.model;
public class ValueUtils {
public static boolean valueNonNullOfType(Value value, Type type) {
return value != null && !value.isNull() && value.getType().isCompatible(type);
}
public static boolean valueLower(Value a, Value b) {
return ((ValueBoolean) a.isLowerThan(b)).getValue();
}
}
|