You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by dc...@apache.org on 2024/12/11 17:46:45 UTC
(cassandra-accord) branch poc/route-index-on-journal created (now 30a85b58)
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a change to branch poc/route-index-on-journal
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
at 30a85b58 added new addIf method
This branch includes the following new commits:
new 30a85b58 added new addIf method
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org
(cassandra-accord) 01/01: added new addIf method
Posted by dc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dcapwell pushed a commit to branch poc/route-index-on-journal
in repository https://gitbox.apache.org/repos/asf/cassandra-accord.git
commit 30a85b58cdc1bf70fd71dac694194c46b0d8bf2a
Author: David Capwell <dc...@apache.org>
AuthorDate: Tue Dec 10 15:29:08 2024 -0800
added new addIf method
---
accord-core/src/test/java/accord/utils/Property.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/accord-core/src/test/java/accord/utils/Property.java b/accord-core/src/test/java/accord/utils/Property.java
index f76ee293..79c29c5a 100644
--- a/accord-core/src/test/java/accord/utils/Property.java
+++ b/accord-core/src/test/java/accord/utils/Property.java
@@ -896,6 +896,11 @@ public class Property
return addIf(predicate, (rs, state) -> cmd.next(rs));
}
+ public CommandsBuilder<State, SystemUnderTest> addIf(Predicate<State> predicate, Command<State, SystemUnderTest, ?> cmd)
+ {
+ return addIf(predicate, (rs, state) -> cmd);
+ }
+
public CommandsBuilder<State, SystemUnderTest> addIf(Predicate<State> predicate, Setup<State, SystemUnderTest> cmd)
{
if (conditionalCommands == null)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org