Class DefaultEnumerable<T>
- Type Parameters:
T- Element type
- All Implemented Interfaces:
Iterable<T>,Enumerable<T>,ExtendedEnumerable<T>,ExtendedOrderedEnumerable<T>,OrderedEnumerable<T>,RawEnumerable<T>
- Direct Known Subclasses:
AbstractEnumerable,AbstractEnumerable2,AbstractQueryable,QueryableDefaults.ReplayableQueryable
Enumerable interface
that implements the extension methods by calling into the Extensions
class.
The are two abstract methods:
RawEnumerable.enumerator() and Iterable.iterator().
The derived class can implement each separately, or implement one in terms of
the other.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<TAccumulate>
@PolyNull TAccumulateaggregate(@PolyNull TAccumulate seed, Function2<@PolyNull TAccumulate, T, @PolyNull TAccumulate> func) Applies an accumulator function over a sequence.@Nullable TApplies an accumulator function over a sequence.<TAccumulate,TResult>
TResultaggregate(TAccumulate seed, Function2<TAccumulate, T, TAccumulate> func, Function1<TAccumulate, TResult> selector) Applies an accumulator function over a sequence.booleanall(Predicate1<T> predicate) Determines whether all elements of a sequence satisfy a condition.booleanany()Determines whether a sequence contains any elements.booleanany(Predicate1<T> predicate) Determines whether any element of a sequence satisfies a condition.Returns the input typed asEnumerable<TSource>.<TInner,TKey, TResult>
Enumerable<TResult>asofJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, @Nullable TInner, TResult> resultSelector, Predicate2<T, TInner> matchComparator, Comparator<TInner> timestampComparator, boolean generateNullsOnRight) Correlates elements of two sequences based on - matching keys - a comparator for timestamps.protected OrderedQueryable<T>Converts this Enumerable to a Queryable.average(BigDecimalFunction1<T> selector) Computes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.doubleaverage(DoubleFunction1<T> selector) Computes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.floataverage(FloatFunction1<T> selector) Computes the average of a sequence of Float values that are obtained by invoking a transform function on each element of the input sequence.intaverage(IntegerFunction1<T> selector) Computes the average of a sequence of int values that are obtained by invoking a transform function on each element of the input sequence.longaverage(LongFunction1<T> selector) Computes the average of a sequence of long values that are obtained by invoking a transform function on each element of the input sequence.average(NullableBigDecimalFunction1<T> selector) Computes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.average(NullableDoubleFunction1<T> selector) Computes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.average(NullableFloatFunction1<T> selector) Computes the average of a sequence of nullable Float values that are obtained by invoking a transform function on each element of the input sequence.average(NullableIntegerFunction1<T> selector) Computes the average of a sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.average(NullableLongFunction1<T> selector) Computes the average of a sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.<T2> Enumerable<T2>Converts the elements of this Enumerable to the specified type.concat(Enumerable<T> enumerable1) Concatenates two sequences.booleanDetermines whether a sequence contains a specified element by using the default equality comparer.booleancontains(T element, EqualityComparer<T> comparer) Determines whether a sequence contains a specified element by using a specifiedEqualityComparer<TSource>.<TInner,TResult>
Enumerable<TResult>correlateJoin(JoinType joinType, Function1<T, Enumerable<TInner>> inner, Function2<T, TInner, TResult> resultSelector) For each row of the current enumerable returns the correlated rows from theinnerenumerable (nested loops join).intcount()Returns the number of elements in a sequence.intcount(Predicate1<T> predicate) Returns a number that represents how many elements in the specified sequence satisfy a condition.<TKey> OrderedEnumerable<T>createOrderedEnumerable(Function1<T, TKey> keySelector, Comparator<TKey> comparator, boolean descending) Performs a subsequent ordering of the elements in anOrderedEnumerableaccording to a key, using a specified comparator.Enumerable<@Nullable T>Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.Enumerable<@PolyNull T>defaultIfEmpty(@PolyNull T value) Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.distinct()Returns distinct elements from a sequence by using the default equality comparer to compare values.distinct(EqualityComparer<T> comparer) Returns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>to compare values.elementAt(int index) Returns the element at a specified index in a sequence.@Nullable TelementAtOrDefault(int index) Returns the element at a specified index in a sequence or a default value if the index is out of range.except(Enumerable<T> enumerable1) Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates.except(Enumerable<T> enumerable1, boolean all) Produces the set difference of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates.except(Enumerable<T> enumerable1, EqualityComparer<T> comparer) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.except(Enumerable<T> enumerable1, EqualityComparer<T> comparer, boolean all) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.first()Returns the first element of a sequence.first(Predicate1<T> predicate) Returns the first element in a sequence that satisfies a specified condition.@Nullable TReturns the first element of a sequence, or a default value if the sequence contains no elements.@Nullable TfirstOrDefault(Predicate1<T> predicate) Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.<R> @Nullable RPerforms an operation for each member of this enumeration.protected Enumerable<T>getThis()Derived classes might wish to override this method to return the "outer" enumerable.protected OrderedEnumerable<T>Derived classes might wish to override this method to return the "outer" ordered-enumerable.<TKey> Enumerable<Grouping<TKey,T>> Groups the elements of a sequence according to a specified key selector function.<TKey> Enumerable<Grouping<TKey,T>> groupBy(Function1<T, TKey> keySelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.<TKey,TAccumulate, TResult>
Enumerable<TResult>groupBy(Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector) Groups the elements of a sequence according to a specified key selector function, initializing an accumulator for each group and adding to it each time an element with the same key is seen.<TKey,TAccumulate, TResult>
Enumerable<TResult>groupBy(Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function, initializing an accumulator for each group and adding to it each time an element with the same key is seen.<TKey,TElement>
Enumerable<Grouping<TKey,TElement>> Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.<TKey,TElement>
Enumerable<Grouping<TKey,TElement>> groupBy(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a key selector function.<TKey,TElement, TResult>
Enumerable<TResult>groupBy(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, Function2<TKey, Enumerable<TElement>, TResult> resultSelector) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TElement, TResult>
Enumerable<TResult>groupBy(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, Function2<TKey, Enumerable<TElement>, TResult> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TResult>
Enumerable<TResult>Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TResult>
Enumerable<TResult>groupBy(Function1<T, TKey> keySelector, Function2<TKey, Enumerable<T>, TResult> elementSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TInner,TKey, TResult>
Enumerable<TResult>groupJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, Enumerable<TInner>, TResult> resultSelector) Correlates the elements of two sequences based on equality of keys and groups the results.<TInner,TKey, TResult>
Enumerable<TResult>groupJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, Enumerable<TInner>, TResult> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on key equality and groups the results.<TInner,TKey, TResult>
Enumerable<TResult>hashJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector) Correlates the elements of two sequences based on matching keys.<TInner,TKey, TResult>
Enumerable<TResult>hashJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, @Nullable EqualityComparer<TKey> comparer, boolean generateNullsOnLeft, boolean generateNullsOnRight) Correlates the elements of two sequences based on matching keys, with optional outer join semantics.<TInner,TKey, TResult>
Enumerable<TResult>hashJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on matching keys.<TInner,TKey, TResult>
Enumerable<TResult>hashJoin(Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, EqualityComparer<TKey> comparer, boolean generateNullsOnLeft, boolean generateNullsOnRight, @Nullable Predicate2<T, TInner> predicate) Correlates the elements of two sequences based on matching keys, with optional outer join semantics.intersect(Enumerable<T> enumerable1) Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.intersect(Enumerable<T> enumerable1, boolean all) Produces the set intersection of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates.intersect(Enumerable<T> enumerable1, EqualityComparer<T> comparer) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.intersect(Enumerable<T> enumerable1, EqualityComparer<T> comparer, boolean all) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.<C extends Collection<? super T>>
Cinto(C sink) Copies the contents of this sequence into a collection.last()Returns the last element of a sequence.last(Predicate1<T> predicate) Returns the last element of a sequence that satisfies a specified condition.@Nullable TReturns the last element of a sequence, or a default value if the sequence contains no elements.@Nullable TlastOrDefault(Predicate1<T> predicate) Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.longReturns an long that represents the total number of elements in a sequence.longlongCount(Predicate1<T> predicate) Returns an long that represents how many elements in a sequence satisfy a condition.@Nullable Tmax()Returns the maximum value in a generic sequence.@Nullable BigDecimalmax(BigDecimalFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum Decimal value.doublemax(DoubleFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum Double value.floatmax(FloatFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum Float value.<TResult extends Comparable<TResult>>
@Nullable TResultInvokes a transform function on each element of a generic sequence and returns the maximum resulting value.intmax(IntegerFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum int value.longmax(LongFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum long value.@Nullable BigDecimalmax(NullableBigDecimalFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.@Nullable Doublemax(NullableDoubleFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum nullable Double value.@Nullable Floatmax(NullableFloatFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum nullable Float value.@Nullable Integermax(NullableIntegerFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum nullable int value.@Nullable Longmax(NullableLongFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the maximum nullable long value.@Nullable Tmin()Returns the minimum value in a generic sequence.@Nullable BigDecimalmin(BigDecimalFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum Decimal value.doublemin(DoubleFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum Double value.floatmin(FloatFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum Float value.<TResult extends Comparable<TResult>>
@Nullable TResultInvokes a transform function on each element of a generic sequence and returns the minimum resulting value.intmin(IntegerFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum int value.longmin(LongFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum long value.@Nullable BigDecimalmin(NullableBigDecimalFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum nullable Decimal value.@Nullable Doublemin(NullableDoubleFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum nullable Double value.@Nullable Floatmin(NullableFloatFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum nullable Float value.@Nullable Integermin(NullableIntegerFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum nullable int value.@Nullable Longmin(NullableLongFunction1<T> selector) Invokes a transform function on each element of a sequence and returns the minimum nullable long value.<TResult> Enumerable<TResult>Filters the elements of an Enumerable based on a specified type.<TKey extends Comparable>
Enumerable<T>Sorts the elements of a sequence in ascending order according to a key.<TKey> Enumerable<T>orderBy(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in ascending order by using a specified comparer.<TKey extends Comparable>
Enumerable<T>orderByDescending(Function1<T, TKey> keySelector) Sorts the elements of a sequence in descending order according to a key.<TKey> Enumerable<T>orderByDescending(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in descending order by using a specified comparer.<C extends Collection<? super T>>
CremoveAll(C sink) Removes the contents of this sequence from a collection.reverse()Inverts the order of the elements in a sequence.<TResult> Enumerable<TResult>Projects each element of a sequence into a new form.<TResult> Enumerable<TResult>Projects each element of a sequence into a new form by incorporating the element's index.<TCollection,TResult>
Enumerable<TResult>selectMany(Function1<T, Enumerable<TCollection>> collectionSelector, Function2<T, TCollection, TResult> resultSelector) Projects each element of a sequence to anEnumerable<TSource>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.<TResult> Enumerable<TResult>selectMany(Function1<T, Enumerable<TResult>> selector) Projects each element of a sequence to anEnumerable<TSource>and flattens the resulting sequences into one sequence.<TCollection,TResult>
Enumerable<TResult>selectMany(Function2<T, Integer, Enumerable<TCollection>> collectionSelector, Function2<T, TCollection, TResult> resultSelector) Projects each element of a sequence to anEnumerable<TSource>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.<TResult> Enumerable<TResult>selectMany(Function2<T, Integer, Enumerable<TResult>> selector) Projects each element of a sequence to anEnumerable<TSource>, and flattens the resulting sequences into one sequence.booleansequenceEqual(Enumerable<T> enumerable1) Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.booleansequenceEqual(Enumerable<T> enumerable1, EqualityComparer<T> comparer) Determines whether two sequences are equal by comparing their elements by using a specifiedEqualityComparer<TSource>.single()Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.single(Predicate1<T> predicate) Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.@Nullable TReturns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.@Nullable TsingleOrDefault(Predicate1<T> predicate) Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.skip(int count) Bypasses a specified number of elements in a sequence and then returns the remaining elements.skipWhile(Predicate1<T> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.skipWhile(Predicate2<T, Integer> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.<TKey,TAccumulate, TResult>
Enumerable<TResult>sortedGroupBy(Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector, Comparator<TKey> comparator) Group keys are sorted already.sum(BigDecimalFunction1<T> selector) Computes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.doublesum(DoubleFunction1<T> selector) Computes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.floatsum(FloatFunction1<T> selector) Computes the sum of the sequence of Float values that are obtained by invoking a transform function on each element of the input sequence.intsum(IntegerFunction1<T> selector) Computes the sum of the sequence of int values that are obtained by invoking a transform function on each element of the input sequence.longsum(LongFunction1<T> selector) Computes the sum of the sequence of long values that are obtained by invoking a transform function on each element of the input sequence.sum(NullableBigDecimalFunction1<T> selector) Computes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.sum(NullableDoubleFunction1<T> selector) Computes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.sum(NullableFloatFunction1<T> selector) Computes the sum of the sequence of nullable Float values that are obtained by invoking a transform function on each element of the input sequence.sum(NullableIntegerFunction1<T> selector) Computes the sum of the sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.sum(NullableLongFunction1<T> selector) Computes the sum of the sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.take(int count) Returns a specified number of contiguous elements from the start of a sequence.takeWhile(Predicate1<T> predicate) Returns elements from a sequence as long as a specified condition is true.takeWhile(Predicate2<T, Integer> predicate) Returns elements from a sequence as long as a specified condition is true.<TKey extends Comparable<TKey>>
OrderedEnumerable<T>Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.<TKey> OrderedEnumerable<T>thenBy(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Performs a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator.<TKey extends Comparable<TKey>>
OrderedEnumerable<T>thenByDescending(Function1<T, TKey> keySelector) Performs a subsequent ordering of the elements in a sequence in descending order according to a key.<TKey> OrderedEnumerable<T>thenByDescending(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Performs a subsequent ordering of the elements in a sequence in descending order according to a key, using a specified comparator.toList()Creates aList<TSource>from anEnumerable<TSource>.Creates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function.toLookup(Function1<T, TKey> keySelector, EqualityComparer<TKey> comparer) Creates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function and key comparer.<TKey,TElement>
Lookup<TKey,TElement> Creates aLookup<TKey, TElement>from anEnumerable<TSource>according to specified key selector and element selector functions.<TKey,TElement>
Lookup<TKey,TElement> toLookup(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Creates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function, a comparer and an element selector function.Creates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function.toMap(Function1<T, TKey> keySelector, EqualityComparer<TKey> comparer) Creates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function and key comparer.<TKey,TElement>
Map<TKey,TElement> Creates aMap<TKey, TValue>from anEnumerable<TSource>according to specified key selector and element selector functions.<TKey,TElement>
Map<TKey,TElement> toMap(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Creates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function, a comparer, and an element selector function.union(Enumerable<T> source1) Produces the set union of two sequences by using the default equality comparer.union(Enumerable<T> source1, EqualityComparer<T> comparer) Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>.where(Predicate1<T> predicate) Filters a sequence of values based on a predicate.where(Predicate2<T, Integer> predicate) Filters a sequence of values based on a predicate.<T1,TResult>
Enumerable<TResult>zip(Enumerable<T1> source1, Function2<T, T1, TResult> resultSelector) Applies a specified function to the corresponding elements of two sequences, producing a sequence of the results.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.calcite.linq4j.RawEnumerable
enumerator
-
Constructor Details
-
DefaultEnumerable
public DefaultEnumerable()
-
-
Method Details
-
getThis
Derived classes might wish to override this method to return the "outer" enumerable. -
getThisOrdered
Derived classes might wish to override this method to return the "outer" ordered-enumerable. -
foreach
Description copied from interface:ExtendedEnumerablePerforms an operation for each member of this enumeration.Returns the value returned by the function for the last element in this enumeration, or null if this enumeration is empty.
- Specified by:
foreachin interfaceExtendedEnumerable<T>- Type Parameters:
R- Return type- Parameters:
func- Operation
-
asQueryable
Description copied from interface:EnumerableConverts this Enumerable to a Queryable.- Specified by:
asQueryablein interfaceEnumerable<T>- Specified by:
asQueryablein interfaceExtendedEnumerable<T>- Returns:
- A queryable
- See Also:
-
asOrderedQueryable
-
aggregate
Description copied from interface:ExtendedEnumerableApplies an accumulator function over a sequence.- Specified by:
aggregatein interfaceExtendedEnumerable<T>
-
aggregate
public <TAccumulate> @PolyNull TAccumulate aggregate(@PolyNull TAccumulate seed, Function2<@PolyNull TAccumulate, T, @PolyNull TAccumulate> func) Description copied from interface:ExtendedEnumerableApplies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.If
seedis not null, the result is never null.- Specified by:
aggregatein interfaceExtendedEnumerable<T>
-
aggregate
public <TAccumulate,TResult> TResult aggregate(TAccumulate seed, Function2<TAccumulate, T, TAccumulate> func, Function1<TAccumulate, TResult> selector) Description copied from interface:ExtendedEnumerableApplies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.- Specified by:
aggregatein interfaceExtendedEnumerable<T>
-
all
Description copied from interface:ExtendedEnumerableDetermines whether all elements of a sequence satisfy a condition.- Specified by:
allin interfaceExtendedEnumerable<T>
-
any
public boolean any()Description copied from interface:ExtendedEnumerableDetermines whether a sequence contains any elements. (Defined by Enumerable.)- Specified by:
anyin interfaceExtendedEnumerable<T>
-
any
Description copied from interface:ExtendedEnumerableDetermines whether any element of a sequence satisfies a condition.- Specified by:
anyin interfaceExtendedEnumerable<T>
-
asEnumerable
Description copied from interface:ExtendedEnumerableReturns the input typed asEnumerable<TSource>.This method has no effect other than to change the compile-time type of source from a type that implements
Enumerable<TSource>toEnumerable<TSource>itself.asEnumerable<TSource>(Enumerable<TSource>)can be used to choose between query implementations when a sequence implementsEnumerable<TSource>but also has a different set of public query methods available. For example, given a generic class Table that implementsEnumerable<TSource>and has its own methods such aswhere,select, andselectMany, a call towherewould invoke the publicwheremethod ofTable. ATabletype that represents a database table could have awheremethod that takes the predicate argument as an expression tree and converts the tree to SQL for remote execution. If remote execution is not desired, for example because the predicate invokes a local method, theasEnumerable<TSource>method can be used to hide the custom methods and instead make the standard query operators available.- Specified by:
asEnumerablein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of int values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of long values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of Float values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
average
Description copied from interface:ExtendedEnumerableComputes the average of a sequence of nullable Float values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
averagein interfaceExtendedEnumerable<T>
-
cast
Description copied from interface:ExtendedEnumerableConverts the elements of this Enumerable to the specified type.This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its
RawEnumerable.enumerator()method directly or by usingfor (... in ...).If an element cannot be cast to type TResult, the
Enumerator.current()method will throw aClassCastExceptiona exception when the element it accessed. To obtain only those elements that can be cast to type TResult, use theExtendedEnumerable.ofType(Class)method instead.- Specified by:
castin interfaceExtendedEnumerable<T>- See Also:
-
concat
Description copied from interface:ExtendedEnumerableConcatenates two sequences.- Specified by:
concatin interfaceExtendedEnumerable<T>
-
contains
Description copied from interface:ExtendedEnumerableDetermines whether a sequence contains a specified element by using the default equality comparer.- Specified by:
containsin interfaceExtendedEnumerable<T>
-
contains
Description copied from interface:ExtendedEnumerableDetermines whether a sequence contains a specified element by using a specifiedEqualityComparer<TSource>.- Specified by:
containsin interfaceExtendedEnumerable<T>
-
count
public int count()Description copied from interface:ExtendedEnumerableReturns the number of elements in a sequence.- Specified by:
countin interfaceExtendedEnumerable<T>
-
count
Description copied from interface:ExtendedEnumerableReturns a number that represents how many elements in the specified sequence satisfy a condition.- Specified by:
countin interfaceExtendedEnumerable<T>
-
createOrderedEnumerable
public <TKey> OrderedEnumerable<T> createOrderedEnumerable(Function1<T, TKey> keySelector, Comparator<TKey> comparator, boolean descending) Description copied from interface:ExtendedOrderedEnumerablePerforms a subsequent ordering of the elements in anOrderedEnumerableaccording to a key, using a specified comparator.The functionality provided by this method is like that provided by
thenByorthenByDescending, depending on whether descending is true or false. They both perform a subordinate ordering of an already sorted sequence of typeOrderedEnumerable.- Specified by:
createOrderedEnumerablein interfaceExtendedOrderedEnumerable<T>
-
defaultIfEmpty
Description copied from interface:ExtendedEnumerableReturns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.- Specified by:
defaultIfEmptyin interfaceExtendedEnumerable<T>
-
defaultIfEmpty
Description copied from interface:ExtendedEnumerableReturns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.If
valueis not null, the result is never null.- Specified by:
defaultIfEmptyin interfaceExtendedEnumerable<T>
-
distinct
Description copied from interface:ExtendedEnumerableReturns distinct elements from a sequence by using the default equality comparer to compare values.- Specified by:
distinctin interfaceExtendedEnumerable<T>
-
distinct
Description copied from interface:ExtendedEnumerableReturns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>to compare values.- Specified by:
distinctin interfaceExtendedEnumerable<T>
-
elementAt
Description copied from interface:ExtendedEnumerableReturns the element at a specified index in a sequence.- Specified by:
elementAtin interfaceExtendedEnumerable<T>
-
elementAtOrDefault
Description copied from interface:ExtendedEnumerableReturns the element at a specified index in a sequence or a default value if the index is out of range.- Specified by:
elementAtOrDefaultin interfaceExtendedEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
exceptin interfaceExtendedEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
exceptin interfaceExtendedEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.- Specified by:
exceptin interfaceExtendedEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.- Specified by:
exceptin interfaceExtendedEnumerable<T>
-
first
Description copied from interface:ExtendedEnumerableReturns the first element of a sequence. (Defined by Enumerable.)- Specified by:
firstin interfaceExtendedEnumerable<T>
-
first
Description copied from interface:ExtendedEnumerableReturns the first element in a sequence that satisfies a specified condition.- Specified by:
firstin interfaceExtendedEnumerable<T>
-
firstOrDefault
Description copied from interface:ExtendedEnumerableReturns the first element of a sequence, or a default value if the sequence contains no elements.- Specified by:
firstOrDefaultin interfaceExtendedEnumerable<T>
-
firstOrDefault
Description copied from interface:ExtendedEnumerableReturns the first element of the sequence that satisfies a condition or a default value if no such element is found.- Specified by:
firstOrDefaultin interfaceExtendedEnumerable<T>
-
groupBy
Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey> Enumerable<Grouping<TKey,T>> groupBy(Function1<T, TKey> keySelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TElement> Enumerable<Grouping<TKey,TElement>> groupBy(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TElement> Enumerable<Grouping<TKey,TElement>> groupBy(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a key selector function. The keys are compared by using a comparer and each group's elements are projected by using a specified function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TResult> Enumerable<TResult> groupBy(Function1<T, TKey> keySelector, Function2<TKey, Enumerable<T>, TResult> elementSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The keys are compared by using a specified comparer.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TResult> Enumerable<TResult> groupBy(Function1<T, TKey> keySelector, Function2<TKey, Enumerable<T>, TResult> resultSelector) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TElement, Enumerable<TResult> groupByTResult> (Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, Function2<TKey, Enumerable<TElement>, TResult> resultSelector) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TElement, Enumerable<TResult> groupByTResult> (Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, Function2<TKey, Enumerable<TElement>, TResult> resultSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Key values are compared by using a specified comparer, and the elements of each group are projected by using a specified function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TAccumulate, Enumerable<TResult> groupByTResult> (Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function, initializing an accumulator for each group and adding to it each time an element with the same key is seen. Creates a result value from each accumulator and its key using a specified function.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
groupBy
public <TKey,TAccumulate, Enumerable<TResult> groupByTResult> (Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableGroups the elements of a sequence according to a specified key selector function, initializing an accumulator for each group and adding to it each time an element with the same key is seen. Creates a result value from each accumulator and its key using a specified function. Key values are compared by using a specified comparer.- Specified by:
groupByin interfaceExtendedEnumerable<T>
-
sortedGroupBy
public <TKey,TAccumulate, Enumerable<TResult> sortedGroupByTResult> (Function1<T, TKey> keySelector, Function0<TAccumulate> accumulatorInitializer, Function2<TAccumulate, T, TAccumulate> accumulatorAdder, Function2<TKey, TAccumulate, TResult> resultSelector, Comparator<TKey> comparator) Description copied from interface:ExtendedEnumerableGroup keys are sorted already. Key values are compared by using a specified comparator. Groups the elements of a sequence according to a specified key selector function and initializing one accumulator at a time. Go over elements sequentially, adding to accumulator each time an element with the same key is seen. When key changes, creates a result value from the accumulator and then re-initializes the accumulator. In the case of NULL values in group keys, the comparator must be able to support NULL values by giving a consistent sort ordering.- Specified by:
sortedGroupByin interfaceExtendedEnumerable<T>
-
groupJoin
public <TInner,TKey, Enumerable<TResult> groupJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, Enumerable<TInner>, TResult> resultSelector) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on equality of keys and groups the results. The default equality comparer is used to compare keys.- Specified by:
groupJoinin interfaceExtendedEnumerable<T>
-
groupJoin
public <TInner,TKey, Enumerable<TResult> groupJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, Enumerable<TInner>, TResult> resultSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on key equality and groups the results. A specifiedEqualityComparer<TSource>is used to compare keys.- Specified by:
groupJoinin interfaceExtendedEnumerable<T>
-
intersect
Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
intersectin interfaceExtendedEnumerable<T>
-
intersect
Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
intersectin interfaceExtendedEnumerable<T>
-
intersect
Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.- Specified by:
intersectin interfaceExtendedEnumerable<T>
-
intersect
public Enumerable<T> intersect(Enumerable<T> enumerable1, EqualityComparer<T> comparer, boolean all) Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.- Specified by:
intersectin interfaceExtendedEnumerable<T>
-
into
Description copied from interface:ExtendedEnumerableCopies the contents of this sequence into a collection.- Specified by:
intoin interfaceExtendedEnumerable<T>
-
removeAll
Description copied from interface:ExtendedEnumerableRemoves the contents of this sequence from a collection.- Specified by:
removeAllin interfaceExtendedEnumerable<T>
-
hashJoin
public <TInner,TKey, Enumerable<TResult> hashJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.- Specified by:
hashJoinin interfaceExtendedEnumerable<T>
-
hashJoin
public <TInner,TKey, Enumerable<TResult> hashJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on matching keys. A specifiedEqualityComparer<TSource>is used to compare keys.- Specified by:
hashJoinin interfaceExtendedEnumerable<T>
-
asofJoin
public <TInner,TKey, Enumerable<TResult> asofJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, @Nullable TInner, TResult> resultSelector, Predicate2<T, TInner> matchComparator, Comparator<TInner> timestampComparator, boolean generateNullsOnRight) Description copied from interface:ExtendedEnumerableCorrelates elements of two sequences based on - matching keys - a comparator for timestamps.- Specified by:
asofJoinin interfaceExtendedEnumerable<T>- Parameters:
inner- Inner sequenceouterKeySelector- Function that extracts a key from the outer collectioninnerKeySelector- Function that extracts a key from the inner collectionresultSelector- Function that computes the join resultmatchComparator- Function that compares an outer row and an inner row for timestamptimestampComparator- Function that compares two inner rows for timestampgenerateNullsOnRight- If true, this a left join
-
hashJoin
public <TInner,TKey, Enumerable<TResult> hashJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, @Nullable EqualityComparer<TKey> comparer, boolean generateNullsOnLeft, boolean generateNullsOnRight) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on matching keys, with optional outer join semantics. A specifiedEqualityComparer<TSource>is used to compare keys.A left join generates nulls on right, and vice versa:
Join types Join type generateNullsOnLeft generateNullsOnRight INNER false false LEFT false true RIGHT true false FULL true true - Specified by:
hashJoinin interfaceExtendedEnumerable<T>
-
hashJoin
public <TInner,TKey, Enumerable<TResult> hashJoinTResult> (Enumerable<TInner> inner, Function1<T, TKey> outerKeySelector, Function1<TInner, TKey> innerKeySelector, Function2<T, TInner, TResult> resultSelector, EqualityComparer<TKey> comparer, boolean generateNullsOnLeft, boolean generateNullsOnRight, @Nullable Predicate2<T, TInner> predicate) Description copied from interface:ExtendedEnumerableCorrelates the elements of two sequences based on matching keys, with optional outer join semantics. A specifiedEqualityComparer<TSource>is used to compare keys.A left join generates nulls on right, and vice versa:
Join types Join type generateNullsOnLeft generateNullsOnRight INNER false false LEFT false true RIGHT true false FULL true true A predicate is used to filter the join result per-row
- Specified by:
hashJoinin interfaceExtendedEnumerable<T>
-
correlateJoin
public <TInner,TResult> Enumerable<TResult> correlateJoin(JoinType joinType, Function1<T, Enumerable<TInner>> inner, Function2<T, TInner, TResult> resultSelector) Description copied from interface:ExtendedEnumerableFor each row of the current enumerable returns the correlated rows from theinnerenumerable (nested loops join).- Specified by:
correlateJoinin interfaceExtendedEnumerable<T>- Parameters:
joinType- inner, left, semi or anti join typeinner- generator of inner enumerableresultSelector- selector of the result. For semi/anti join inner argument is always null.
-
last
Description copied from interface:ExtendedEnumerableReturns the last element of a sequence. (Defined by Enumerable.)- Specified by:
lastin interfaceExtendedEnumerable<T>
-
last
Description copied from interface:ExtendedEnumerableReturns the last element of a sequence that satisfies a specified condition.- Specified by:
lastin interfaceExtendedEnumerable<T>
-
lastOrDefault
Description copied from interface:ExtendedEnumerableReturns the last element of a sequence, or a default value if the sequence contains no elements.- Specified by:
lastOrDefaultin interfaceExtendedEnumerable<T>
-
lastOrDefault
Description copied from interface:ExtendedEnumerableReturns the last element of a sequence that satisfies a condition or a default value if no such element is found.- Specified by:
lastOrDefaultin interfaceExtendedEnumerable<T>
-
longCount
public long longCount()Description copied from interface:ExtendedEnumerableReturns an long that represents the total number of elements in a sequence.- Specified by:
longCountin interfaceExtendedEnumerable<T>
-
longCount
Description copied from interface:ExtendedEnumerableReturns an long that represents how many elements in a sequence satisfy a condition.- Specified by:
longCountin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableReturns the maximum value in a generic sequence.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum Decimal value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum Double value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum nullable Double value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum int value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum nullable int value. (Defined by Enumerable.)- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum long value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum nullable long value. (Defined by Enumerable.)- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum Float value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the maximum nullable Float value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
max
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a generic sequence and returns the maximum resulting value.- Specified by:
maxin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableReturns the minimum value in a generic sequence.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum Decimal value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum nullable Decimal value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum Double value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum nullable Double value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum int value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum nullable int value. (Defined by Enumerable.)- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum long value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum nullable long value. (Defined by Enumerable.)- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum Float value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a sequence and returns the minimum nullable Float value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
min
Description copied from interface:ExtendedEnumerableInvokes a transform function on each element of a generic sequence and returns the minimum resulting value.- Specified by:
minin interfaceExtendedEnumerable<T>
-
ofType
Description copied from interface:ExtendedEnumerableFilters the elements of an Enumerable based on a specified type.Analogous to LINQ's Enumerable.OfType extension method.
- Specified by:
ofTypein interfaceExtendedEnumerable<T>- Type Parameters:
TResult- Target type- Parameters:
clazz- Target type- Returns:
- Collection of T2
-
orderBy
Description copied from interface:ExtendedEnumerableSorts the elements of a sequence in ascending order according to a key.- Specified by:
orderByin interfaceExtendedEnumerable<T>
-
orderBy
Description copied from interface:ExtendedEnumerableSorts the elements of a sequence in ascending order by using a specified comparer.- Specified by:
orderByin interfaceExtendedEnumerable<T>
-
orderByDescending
Description copied from interface:ExtendedEnumerableSorts the elements of a sequence in descending order according to a key.- Specified by:
orderByDescendingin interfaceExtendedEnumerable<T>
-
orderByDescending
public <TKey> Enumerable<T> orderByDescending(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Description copied from interface:ExtendedEnumerableSorts the elements of a sequence in descending order by using a specified comparer.- Specified by:
orderByDescendingin interfaceExtendedEnumerable<T>
-
reverse
Description copied from interface:ExtendedEnumerableInverts the order of the elements in a sequence.- Specified by:
reversein interfaceExtendedEnumerable<T>
-
select
Description copied from interface:ExtendedEnumerableProjects each element of a sequence into a new form.- Specified by:
selectin interfaceExtendedEnumerable<T>
-
select
Description copied from interface:ExtendedEnumerableProjects each element of a sequence into a new form by incorporating the element's index.- Specified by:
selectin interfaceExtendedEnumerable<T>
-
selectMany
Description copied from interface:ExtendedEnumerableProjects each element of a sequence to anEnumerable<TSource>and flattens the resulting sequences into one sequence.- Specified by:
selectManyin interfaceExtendedEnumerable<T>
-
selectMany
Description copied from interface:ExtendedEnumerableProjects each element of a sequence to anEnumerable<TSource>, and flattens the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.- Specified by:
selectManyin interfaceExtendedEnumerable<T>
-
selectMany
public <TCollection,TResult> Enumerable<TResult> selectMany(Function2<T, Integer, Enumerable<TCollection>> collectionSelector, Function2<T, TCollection, TResult> resultSelector) Description copied from interface:ExtendedEnumerableProjects each element of a sequence to anEnumerable<TSource>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. The index of each source element is used in the intermediate projected form of that element.- Specified by:
selectManyin interfaceExtendedEnumerable<T>
-
selectMany
public <TCollection,TResult> Enumerable<TResult> selectMany(Function1<T, Enumerable<TCollection>> collectionSelector, Function2<T, TCollection, TResult> resultSelector) Description copied from interface:ExtendedEnumerableProjects each element of a sequence to anEnumerable<TSource>, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein.- Specified by:
selectManyin interfaceExtendedEnumerable<T>
-
sequenceEqual
Description copied from interface:ExtendedEnumerableDetermines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.- Specified by:
sequenceEqualin interfaceExtendedEnumerable<T>
-
sequenceEqual
Description copied from interface:ExtendedEnumerableDetermines whether two sequences are equal by comparing their elements by using a specifiedEqualityComparer<TSource>.- Specified by:
sequenceEqualin interfaceExtendedEnumerable<T>
-
single
Description copied from interface:ExtendedEnumerableReturns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.- Specified by:
singlein interfaceExtendedEnumerable<T>
-
single
Description copied from interface:ExtendedEnumerableReturns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.- Specified by:
singlein interfaceExtendedEnumerable<T>
-
singleOrDefault
Description copied from interface:ExtendedEnumerableReturns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.- Specified by:
singleOrDefaultin interfaceExtendedEnumerable<T>
-
singleOrDefault
Description copied from interface:ExtendedEnumerableReturns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.- Specified by:
singleOrDefaultin interfaceExtendedEnumerable<T>
-
skip
Description copied from interface:ExtendedEnumerableBypasses a specified number of elements in a sequence and then returns the remaining elements.- Specified by:
skipin interfaceExtendedEnumerable<T>
-
skipWhile
Description copied from interface:ExtendedEnumerableBypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.- Specified by:
skipWhilein interfaceExtendedEnumerable<T>
-
skipWhile
Description copied from interface:ExtendedEnumerableBypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.- Specified by:
skipWhilein interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of Decimal values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of nullable Decimal values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of Double values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of nullable Double values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of int values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of nullable int values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of long values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of nullable long values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of Float values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
sum
Description copied from interface:ExtendedEnumerableComputes the sum of the sequence of nullable Float values that are obtained by invoking a transform function on each element of the input sequence.- Specified by:
sumin interfaceExtendedEnumerable<T>
-
take
Description copied from interface:ExtendedEnumerableReturns a specified number of contiguous elements from the start of a sequence.- Specified by:
takein interfaceExtendedEnumerable<T>
-
takeWhile
Description copied from interface:ExtendedEnumerableReturns elements from a sequence as long as a specified condition is true.- Specified by:
takeWhilein interfaceExtendedEnumerable<T>
-
takeWhile
Description copied from interface:ExtendedEnumerableReturns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.- Specified by:
takeWhilein interfaceExtendedEnumerable<T>
-
thenBy
Description copied from interface:ExtendedOrderedEnumerablePerforms a subsequent ordering of the elements in a sequence in ascending order according to a key.- Specified by:
thenByin interfaceExtendedOrderedEnumerable<T>
-
thenBy
public <TKey> OrderedEnumerable<T> thenBy(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Description copied from interface:ExtendedOrderedEnumerablePerforms a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator.- Specified by:
thenByin interfaceExtendedOrderedEnumerable<T>
-
thenByDescending
public <TKey extends Comparable<TKey>> OrderedEnumerable<T> thenByDescending(Function1<T, TKey> keySelector) Description copied from interface:ExtendedOrderedEnumerablePerforms a subsequent ordering of the elements in a sequence in descending order according to a key.- Specified by:
thenByDescendingin interfaceExtendedOrderedEnumerable<T>
-
thenByDescending
public <TKey> OrderedEnumerable<T> thenByDescending(Function1<T, TKey> keySelector, Comparator<TKey> comparator) Description copied from interface:ExtendedOrderedEnumerablePerforms a subsequent ordering of the elements in a sequence in descending order according to a key, using a specified comparator.- Specified by:
thenByDescendingin interfaceExtendedOrderedEnumerable<T>
-
toMap
Description copied from interface:ExtendedEnumerableCreates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function.NOTE: Called
toDictionaryin LINQ.NET.- Specified by:
toMapin interfaceExtendedEnumerable<T>
-
toMap
Description copied from interface:ExtendedEnumerableCreates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function and key comparer.- Specified by:
toMapin interfaceExtendedEnumerable<T>
-
toMap
public <TKey,TElement> Map<TKey,TElement> toMap(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector) Description copied from interface:ExtendedEnumerableCreates aMap<TKey, TValue>from anEnumerable<TSource>according to specified key selector and element selector functions.- Specified by:
toMapin interfaceExtendedEnumerable<T>
-
toMap
public <TKey,TElement> Map<TKey,TElement> toMap(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableCreates aMap<TKey, TValue>from anEnumerable<TSource>according to a specified key selector function, a comparer, and an element selector function.- Specified by:
toMapin interfaceExtendedEnumerable<T>
-
toList
Description copied from interface:ExtendedEnumerableCreates aList<TSource>from anEnumerable<TSource>.- Specified by:
toListin interfaceExtendedEnumerable<T>
-
toLookup
Description copied from interface:ExtendedEnumerableCreates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function.- Specified by:
toLookupin interfaceExtendedEnumerable<T>
-
toLookup
public <TKey> Lookup<TKey,T> toLookup(Function1<T, TKey> keySelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableCreates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function and key comparer.- Specified by:
toLookupin interfaceExtendedEnumerable<T>
-
toLookup
public <TKey,TElement> Lookup<TKey,TElement> toLookup(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector) Description copied from interface:ExtendedEnumerableCreates aLookup<TKey, TElement>from anEnumerable<TSource>according to specified key selector and element selector functions.- Specified by:
toLookupin interfaceExtendedEnumerable<T>
-
toLookup
public <TKey,TElement> Lookup<TKey,TElement> toLookup(Function1<T, TKey> keySelector, Function1<T, TElement> elementSelector, EqualityComparer<TKey> comparer) Description copied from interface:ExtendedEnumerableCreates aLookup<TKey, TElement>from anEnumerable<TSource>according to a specified key selector function, a comparer and an element selector function.- Specified by:
toLookupin interfaceExtendedEnumerable<T>
-
union
Description copied from interface:ExtendedEnumerableProduces the set union of two sequences by using the default equality comparer.- Specified by:
unionin interfaceExtendedEnumerable<T>
-
union
Description copied from interface:ExtendedEnumerableProduces the set union of two sequences by using a specifiedEqualityComparer<TSource>.- Specified by:
unionin interfaceExtendedEnumerable<T>
-
where
Description copied from interface:ExtendedEnumerableFilters a sequence of values based on a predicate.- Specified by:
wherein interfaceExtendedEnumerable<T>
-
where
Description copied from interface:ExtendedEnumerableFilters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.- Specified by:
wherein interfaceExtendedEnumerable<T>
-
zip
public <T1,TResult> Enumerable<TResult> zip(Enumerable<T1> source1, Function2<T, T1, TResult> resultSelector) Description copied from interface:ExtendedEnumerableApplies a specified function to the corresponding elements of two sequences, producing a sequence of the results.- Specified by:
zipin interfaceExtendedEnumerable<T>
-