/** * Alias for identity(). Inlineable. * * @see #identity() */ public static <T> Function<T, T> getPassThru() { return Functions.identity(); }
/** * Alias for identity(). Inlineable. * * @see #identity() */ public static <T> Function<T, T> getPassThru() { return Functions.identity(); }
public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction) { this(newMap, newKeyFunction, (Function<T, V>) Functions.identity()); }
public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction) { this(newMap, newKeyFunction, (Function<T, V>) Functions.identity()); }
/** * 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); }
/** * 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()); }
/** * 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()); }
/** * 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); }
private static Map<SchemaDescriptor, IndexProxy> indexesByDescriptor( LongObjectMap<IndexProxy> indexesById ) { return indexesById.toMap( indexProxy -> indexProxy.getDescriptor().schema(), Functions.identity() ); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
Collectors.toMap( AbstractBaseRecord::getId, Functions.identity() ) ); return new DiffMatcher<Iterable<? extends AbstractBaseRecord>>()
public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction) { this(newMap, newKeyFunction, (Function<T, V>) Functions.identity()); }
/** * Alias for identity(). Inlineable. * * @see #identity() */ public static <T> Function<T, T> getPassThru() { return Functions.identity(); }
/** * 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()); }
/** * 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); }
@Override public RichIterable<V> valuesView() { return this.getMap().valuesView().flatCollect(Functions.<Iterable<V>>identity()); }
private static Map<SchemaDescriptor, IndexProxy> indexesByDescriptor( LongObjectMap<IndexProxy> indexesById ) { return indexesById.toMap( indexProxy -> indexProxy.getDescriptor().schema(), Functions.identity() ); }