blob: 3df8231634bc1b3d749081c37526ca16ca8a1224 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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();
}
public static ValueTime currentTime() {
return new ValueTime(System.currentTimeMillis());
}
}
|