commit | 361664ee4ea4a662f52cb988143bb178daa8f1ce | [log] [tgz] |
---|---|---|
author | Yuta HIGUCHI <y-higuchi@onlab.us> | Thu Nov 06 17:28:47 2014 -0800 |
committer | Yuta HIGUCHI <y-higuchi@onlab.us> | Thu Nov 06 18:06:12 2014 -0800 |
tree | 56bb5423f38c0976df4f1576a6efa7070660e5bd | |
parent | f3346a557a447c524852deb84d8e77e4b8806a6f [diff] [blame] |
Add sample accessing database service to Foo Change-Id: I514c57a278dea368448d284eb5bf0d41bb0013e3
diff --git a/core/api/src/main/java/org/onlab/onos/store/service/ReadResult.java b/core/api/src/main/java/org/onlab/onos/store/service/ReadResult.java index 6d28fc2..49e9665 100644 --- a/core/api/src/main/java/org/onlab/onos/store/service/ReadResult.java +++ b/core/api/src/main/java/org/onlab/onos/store/service/ReadResult.java
@@ -35,6 +35,15 @@ } /** + * Returns true if database table contained value for the key. + * + * @return true if database table contained value for the key + */ + public boolean valueExists() { + return value != null; + } + + /** * Returns value associated with the key. * @return non-null value if the table contains one, null otherwise. */