belliottsmith commented on code in PR #174:
URL: https://github.com/apache/cassandra-accord/pull/174#discussion_r1977277510


##########
accord-core/src/main/java/accord/primitives/AbstractRanges.java:
##########
@@ -127,6 +127,11 @@ public final boolean containsAll(AbstractRanges that)
         return ((int) supersetLinearMerge(this.ranges, that.ranges)) == 
that.size();
     }
 
+    public boolean contains(Range range)
+    {
+        return ((int) supersetLinearMerge(this.ranges, new Range[] { range} )) 
== 1;

Review Comment:
   ```suggestion
               return indexOf(range, FAST) >= 0;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org
For additional commands, e-mail: pr-h...@cassandra.apache.org

Reply via email to