org.eclipse.collections.api.block.function.Function.apply()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(172)

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

Function.apply介绍

暂无

代码示例

代码示例来源:origin: eclipse/eclipse-collections

/**
 * Returns a BigDecimalSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigDecimalSummaryStatistics> summarizingBigDecimal(Function<? super T, BigDecimal> function)
{
  return Collector.of(
      BigDecimalSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigDecimalSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: eclipse/eclipse-collections

/**
 * Returns a BigIntegerSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigIntegerSummaryStatistics> summarizingBigInteger(Function<? super T, BigInteger> function)
{
  return Collector.of(
      BigIntegerSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigIntegerSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: eclipse/eclipse-collections

/**
 * Returns a BigDecimalSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigDecimalSummaryStatistics> summarizingBigDecimal(Function<? super T, BigDecimal> function)
{
  return Collector.of(
      BigDecimalSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigDecimalSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: eclipse/eclipse-collections

/**
 * Returns a BigIntegerSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigIntegerSummaryStatistics> summarizingBigInteger(Function<? super T, BigInteger> function)
{
  return Collector.of(
      BigIntegerSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigIntegerSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: eclipse/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigInteger oldValue = map.get(key);
  BigInteger valueToAdd = function.valueOf(each);

代码示例来源:origin: eclipse/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigDecimal oldValue = map.get(key);
  BigDecimal valueToAdd = function.valueOf(each);

代码示例来源:origin: eclipse/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigInteger oldValue = map.get(key);
  BigInteger valueToAdd = function.valueOf(each);

代码示例来源:origin: eclipse/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigDecimal oldValue = map.get(key);
  BigDecimal valueToAdd = function.valueOf(each);

代码示例来源:origin: org.eclipse.collections/eclipse-collections

/**
 * Returns a BigIntegerSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigIntegerSummaryStatistics> summarizingBigInteger(Function<? super T, BigInteger> function)
{
  return Collector.of(
      BigIntegerSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigIntegerSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: org.eclipse.collections/eclipse-collections

/**
 * Returns a BigDecimalSummaryStatistics applying the specified function to each element of the stream or collection.
 *
 * @since 8.1
 */
public static <T> Collector<T, ?, BigDecimalSummaryStatistics> summarizingBigDecimal(Function<? super T, BigDecimal> function)
{
  return Collector.of(
      BigDecimalSummaryStatistics::new,
      (stats, each) -> stats.value(function.apply(each)),
      BigDecimalSummaryStatistics::merge,
      Collector.Characteristics.UNORDERED);
}

代码示例来源:origin: org.eclipse.collections/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigInteger oldValue = map.get(key);
  BigInteger valueToAdd = function.valueOf(each);

代码示例来源:origin: org.eclipse.collections/eclipse-collections

(map, each) ->
  V key = groupBy.apply(each);
  BigDecimal oldValue = map.get(key);
  BigDecimal valueToAdd = function.valueOf(each);

相关文章