Skip to content

Commit 78e6133

Browse files
QueryBuilder: document between is inclusive.
1 parent 172aa7e commit 78e6133

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

objectbox-java/src/main/java/io/objectbox/query/QueryBuilder.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,9 @@ public QueryBuilder<T> greaterOrEqual(Property<T> property, long value) {
552552
return this;
553553
}
554554

555+
/**
556+
* Finds objects with property value between and including the first and second value.
557+
*/
555558
public QueryBuilder<T> between(Property<T> property, long value1, long value2) {
556559
verifyHandle();
557560
checkCombineCondition(nativeBetween(handle, property.getId(), value1, value2));
@@ -662,6 +665,8 @@ public QueryBuilder<T> greaterOrEqual(Property<T> property, Date value) {
662665
}
663666

664667
/**
668+
* Finds objects with property value between and including the first and second value.
669+
*
665670
* @throws NullPointerException if one of the given values is null.
666671
*/
667672
public QueryBuilder<T> between(Property<T> property, Date value1, Date value2) {
@@ -883,6 +888,9 @@ public QueryBuilder<T> greaterOrEqual(Property<T> property, double value) {
883888
return this;
884889
}
885890

891+
/**
892+
* Finds objects with property value between and including the first and second value.
893+
*/
886894
public QueryBuilder<T> between(Property<T> property, double value1, double value2) {
887895
verifyHandle();
888896
checkCombineCondition(nativeBetween(handle, property.getId(), value1, value2));

0 commit comments

Comments
 (0)