org.eclipse.collections.impl.block.factory.Functions.bind()方法的使用及代码示例

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

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

Functions.bind介绍

[英]Bind the parameter passed to a Function2 into a new Function.
[中]将传递给Function2的参数绑定到新函数中。

代码示例

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

@Override
public <P, V> ParallelIterable<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public <P, V> ParallelIterable<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.batch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.batch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public <P, VV> MutableBag<VV> collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public <P, VV> MutableList<VV> collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public <P, V> ImmutableList<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.parallelIterable.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public <P, VV> MutableBag<VV> collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.unsortedSetBatch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.unsortedBagBatch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.sortedSetBatch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public <P, VV> MutableList<VV> collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public void each(Procedure<? super V> procedure)
{
  Iterate.forEach(this.adapted, Functions.bind(procedure, this.function));
}

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

@Override
public <P> void forEachWith(Procedure2<? super V, ? super P> procedure, P parameter)
{
  Iterate.forEachWith(this.adapted, Functions.bind(procedure, this.function), parameter);
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.parallelIterable.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public <P, V, R extends Collection<V>> R collectWith(
    Function2<? super T, ? super P, ? extends V> function,
    P parameter,
    R target)
{
  return this.collect(Functions.bind(function, parameter), target);
}

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

@Override
public <P, VV> ImmutableList<VV> collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
{
  return this.collect(Functions.bind(function, parameter));
}

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

@Override
public void forEach(Procedure<? super V> procedure)
{
  this.sortedSetBatch.forEach(Functions.bind(procedure, this.function));
}

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

@Override
public void each(Procedure<? super V> procedure)
{
  Iterate.forEach(this.adapted, Functions.bind(procedure, this.function));
}

相关文章