diff options
author | Martin <marcin.j.chrzanowski@gmail.com> | 2019-12-30 13:18:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 13:18:04 +0100 |
commit | 75d494c5b14093efbf38d5def9d67e26fd99c253 (patch) | |
tree | 9a322a93a6786002a7324a1e17e7da6c0d493eb4 /src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java | |
parent | 7f03e1ddbd73831499d63eee1075b0b1226fa173 (diff) | |
parent | c6f148b33422f0d1660a4289f413193011736475 (diff) |
Merge pull request #78 from m-chrzan/qurnik
Run queries with Qurnik
Diffstat (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java')
-rw-r--r-- | src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java new file mode 100644 index 0000000..01a45b5 --- /dev/null +++ b/src/main/java/pl/edu/mimuw/cloudatlas/model/ValueUtils.java @@ -0,0 +1,7 @@ +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); + } +} |