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

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

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

Functions.identity介绍

暂无

代码示例

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

/**
 * Alias for identity(). Inlineable.
 *
 * @see #identity()
 */
public static <T> Function<T, T> getPassThru()
{
  return Functions.identity();
}

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

/**
 * Alias for identity(). Inlineable.
 *
 * @see #identity()
 */
public static <T> Function<T, T> getPassThru()
{
  return Functions.identity();
}

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

public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction)
{
  this(newMap, newKeyFunction, (Function<T, V>) Functions.identity());
}

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

public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction)
{
  this(newMap, newKeyFunction, (Function<T, V>) Functions.identity());
}

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

/**
 * Same as {@link #flatten(Iterable)} except that the results are gathered into the specified targetCollection.
 */
public static <T, R extends Collection<T>> R flatten(Iterable<? extends Iterable<T>> iterable, R targetCollection)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity(), targetCollection);
}

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

/**
 * Flattens a collection of collections into one "flat" collection.
 *
 * @param iterable A list of lists, e.g. { { 1, 2, 3 }, { 4, 5 }, { 6 } }
 * @return A flattened list, e.g. { 1, 2, 3, 4, 5, 6 }
 */
public static <T> Collection<T> flatten(Iterable<? extends Iterable<T>> iterable)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity());
}

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

/**
 * Flattens a collection of collections into one "flat" collection.
 *
 * @param iterable A list of lists, e.g. { { 1, 2, 3 }, { 4, 5 }, { 6 } }
 * @return A flattened list, e.g. { 1, 2, 3, 4, 5, 6 }
 */
public static <T> Collection<T> flatten(Iterable<? extends Iterable<T>> iterable)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity());
}

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

/**
 * Same as {@link #flatten(Iterable)} except that the results are gathered into the specified targetCollection.
 */
public static <T, R extends Collection<T>> R flatten(Iterable<? extends Iterable<T>> iterable, R targetCollection)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity(), targetCollection);
}

代码示例来源:origin: neo4j/neo4j

private static Map<SchemaDescriptor, IndexProxy> indexesByDescriptor( LongObjectMap<IndexProxy> indexesById )
{
  return indexesById.toMap( indexProxy -> indexProxy.getDescriptor().schema(), Functions.identity() );
}

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

@Override
public RichIterable<V> valuesView()
{
  return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity());
}

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

@Override
public RichIterable<V> valuesView()
{
  return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity());
}

代码示例来源:origin: neo4j/neo4j

Collectors.toMap( AbstractBaseRecord::getId, Functions.identity() ) );
return new DiffMatcher<Iterable<? extends AbstractBaseRecord>>()

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

public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction)
{
  this(newMap, newKeyFunction, (Function<T, V>) Functions.identity());
}

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

/**
 * Alias for identity(). Inlineable.
 *
 * @see #identity()
 */
public static <T> Function<T, T> getPassThru()
{
  return Functions.identity();
}

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

/**
 * Flattens a collection of collections into one "flat" collection.
 *
 * @param iterable A list of lists, e.g. { { 1, 2, 3 }, { 4, 5 }, { 6 } }
 * @return A flattened list, e.g. { 1, 2, 3, 4, 5, 6 }
 */
public static <T> Collection<T> flatten(Iterable<? extends Iterable<T>> iterable)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity());
}

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

/**
 * Same as {@link #flatten(Iterable)} except that the results are gathered into the specified targetCollection.
 */
public static <T, R extends Collection<T>> R flatten(Iterable<? extends Iterable<T>> iterable, R targetCollection)
{
  return Iterate.flatCollect(iterable, Functions.<Iterable<T>>identity(), targetCollection);
}

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

@Override
public RichIterable<V> valuesView()
{
  return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity());
}

代码示例来源:origin: org.neo4j/neo4j-kernel

private static Map<SchemaDescriptor, IndexProxy> indexesByDescriptor( LongObjectMap<IndexProxy> indexesById )
{
  return indexesById.toMap( indexProxy -> indexProxy.getDescriptor().schema(), Functions.identity() );
}

相关文章