本文整理了Java中cyclops.reactive.ReactiveSeq.endsWith
方法的一些代码示例,展示了ReactiveSeq.endsWith
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReactiveSeq.endsWith
方法的具体详情如下:
包路径:cyclops.reactive.ReactiveSeq
类名称:ReactiveSeq
方法名:endsWith
[英]```
assertTrue(ReactiveSeq.of(1,2,3,4,5,6)
[中]```
assertTrue(ReactiveSeq.of(1,2,3,4,5,6)
代码示例来源:origin: aol/cyclops
@SafeVarargs
public static <T1> Predicate<Iterable<? super T1>> endsWith(final T1... items) {
return test -> ReactiveSeq.fromIterable(test)
.endsWith(ReactiveSeq.of(items));
}
代码示例来源:origin: aol/cyclops
@Test
public void endsWithEmpty(){
assertTrue(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList()));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithBothEmpty(){
assertTrue(Spouts.<Integer>of()
.endsWith(Arrays.asList()));
}
代码示例来源:origin: aol/cyclops
@Test
public void endsWithFalse(){
assertFalse(of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6,7)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithFalse(){
assertFalse(ReactiveSeq.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6,7)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithBothEmpty(){
assertTrue(ReactiveSeq.<Integer>of()
.endsWith(Arrays.asList()));
}
代码示例来源:origin: aol/cyclops
@Test
public void endsWithBothEmpty(){
assertTrue(Spouts.<Integer>of()
.endsWith(Arrays.asList()));
}
代码示例来源:origin: aol/cyclops
@Test
public void endsWithFalse(){
assertFalse(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6,7)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithToLong(){
assertFalse(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(0,1,2,3,4,5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithToLong(){
assertFalse(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(0,1,2,3,4,5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithWhenEmpty(){
assertFalse(of()
.endsWith(Arrays.asList(1,2,3,4,5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWith(){
assertTrue(of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWith(){
assertTrue(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWith(){
assertTrue(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithFalse(){
assertFalse(Spouts.of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6,7)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithFalse(){
assertFalse(of(1,2,3,4,5,6)
.endsWith(Arrays.asList(5,6,7)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithEmpty(){
assertTrue(ReactiveSeq.of(1,2,3,4,5,6)
.endsWith(Arrays.asList()));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithWhenEmpty(){
assertFalse(ReactiveSeq.of()
.endsWith(Arrays.asList(1,2,3,4,5,6)));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithEmpty(){
assertTrue(of(1,2,3,4,5,6)
.endsWith(Arrays.asList()));
}
@Test
代码示例来源:origin: aol/cyclops
@Test
public void endsWithWhenEmpty(){
assertFalse(of()
.endsWith(Arrays.asList(1,2,3,4,5,6)));
}
@Test
内容来源于网络,如有侵权,请联系作者删除!