cyclops.reactive.ReactiveSeq.removeValue()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中cyclops.reactive.ReactiveSeq.removeValue方法的一些代码示例,展示了ReactiveSeq.removeValue的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ReactiveSeq.removeValue方法的具体详情如下:
包路径:cyclops.reactive.ReactiveSeq
类名称:ReactiveSeq
方法名:removeValue

ReactiveSeq.removeValue介绍

[英]Remove first occurance of the specified element from the ReactiveSeq

ReactiveSeq.of(1,2,3,4,5,1,2,3).removeValue(1)

[中]从ReactiveSeq中删除指定元素的首次出现

ReactiveSeq.of(1,2,3,4,5,1,2,3).removeValue(1)

代码示例

代码示例来源:origin: aol/cyclops

default IterableX<T> removeValue(T value){
  return unitIterable(stream().removeValue(value));
}

代码示例来源:origin: aol/cyclops

/**
 * Remove all occurances of the specified element from the Streamable
 * <pre>
 * {@code
 *     Streamable.of(1,2,3,4,5,1,2,3).removeValue(1)
 *
 *  //Streamable[2,3,4,5,2,3]
 * }
 * </pre>
 *
 * @param t element to removeValue
 * @return Filtered Streamable
 */
default Streamable<T> removeValue(final T t) {
  return Streamable.fromStream(this.stream().removeValue(t));
}

代码示例来源:origin: com.oath.cyclops/cyclops-futurestream

/**
 * Remove all occurances of the specified element from the Stream
 * <pre>
 * {@code
 *     FutureStream.of(1,2,3,4,5,1,2,3).removeValue(1)
 *
 *  //FutureStream[2,3,4,5,2,3]
 * }
 * </pre>
 *
 * @param t element to removeValue
 * @return Filtered Stream
 */
@Override
default FutureStream<U> removeValue(final U t) {
  return (FutureStream<U>) ReactiveSeq.super.removeValue(t);
}

代码示例来源:origin: com.oath.cyclops/cyclops

default IterableX<T> removeValue(T value){
  return unitIterable(stream().removeValue(value));
}

代码示例来源:origin: com.oath.cyclops/cyclops

/**
 * Remove all occurances of the specified element from the Streamable
 * <pre>
 * {@code
 *     Streamable.of(1,2,3,4,5,1,2,3).removeValue(1)
 *
 *  //Streamable[2,3,4,5,2,3]
 * }
 * </pre>
 *
 * @param t element to removeValue
 * @return Filtered Streamable
 */
default Streamable<T> removeValue(final T t) {
  return Streamable.fromStream(this.stream().removeValue(t));
}

相关文章

微信公众号

最新文章

更多

ReactiveSeq类方法