@Test public void testValueEquals() { RecordWindow recordWindow = Windows.valueEquals(booleanChannel("flag"), true); RecordWindow clone = ClonerUtil.clone(recordWindow); innerTestBitActiver(recordWindow); innerTestBitActiver(clone); }
public static <T> RecordWindow valueEquals(Supplier<T> supplier, T expected) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && supplier.extract(record).equals(expected), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); }
Windows { public static <T> RecordWindow valueEquals(Supplier<T> supplier, T expected) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && supplier.extract(record).equals(expected), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); } }
Windows { public static <T> RecordWindow valueEquals(Supplier<T> supplier, T expected) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && supplier.extract(record).equals(expected), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); } private  Windows(); }
Windows { public static <T> RecordWindow valueEquals(Supplier<T> supplier, T expected) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && supplier.extract(record).equals(expected), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); } private  Windows(); static RecordWindow bitActive(Supplier<Boolean> supplier); static RecordWindow bitNotActive(Supplier<Boolean> supplier); static RecordWindow valueEquals(Supplier<T> supplier, T expected); static RecordWindow valueNotEquals(Supplier<T> supplier, T notExpected); }
Windows { public static <T> RecordWindow valueEquals(Supplier<T> supplier, T expected) { return new LambdaRecordWindow( record -> supplier.extract(record) != null && supplier.extract(record).equals(expected), () -> new ArrayList<>(supplier.getChannelIdentifiers()) ); } private  Windows(); static RecordWindow bitActive(Supplier<Boolean> supplier); static RecordWindow bitNotActive(Supplier<Boolean> supplier); static RecordWindow valueEquals(Supplier<T> supplier, T expected); static RecordWindow valueNotEquals(Supplier<T> supplier, T notExpected);  }