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()); } public static ValueTime addToTime(ValueTime time, long millis) { return time.addValue(new ValueDuration(millis)); } }