Interface QueryableFactory<T>

    • Method Detail

      • aggregate

        <TAccumulate> TAccumulate aggregate​(Queryable<T> source,
                                            TAccumulate seed,
                                            FunctionExpression<Function2<TAccumulate,​T,​TAccumulate>> selector)
        Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
      • aggregate

        <TAccumulate,​TResult> TResult aggregate​(Queryable<T> source,
                                                      TAccumulate seed,
                                                      FunctionExpression<Function2<TAccumulate,​T,​TAccumulate>> func,
                                                      FunctionExpression<Function1<TAccumulate,​TResult>> selector)
        Applies 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.
      • any

        boolean any​(Queryable<T> source)
        Determines whether a sequence contains any elements.
      • averageBigDecimal

        java.math.BigDecimal averageBigDecimal​(Queryable<T> source,
                                               FunctionExpression<BigDecimalFunction1<T>> selector)
        Computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.
      • averageNullableBigDecimal

        java.math.BigDecimal averageNullableBigDecimal​(Queryable<T> source,
                                                       FunctionExpression<NullableBigDecimalFunction1<T>> selector)
        Computes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.
      • averageDouble

        double averageDouble​(Queryable<T> source,
                             FunctionExpression<DoubleFunction1<T>> selector)
        Computes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.
      • averageNullableDouble

        java.lang.Double averageNullableDouble​(Queryable<T> source,
                                               FunctionExpression<NullableDoubleFunction1<T>> selector)
        Computes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.
      • averageInteger

        int averageInteger​(Queryable<T> source,
                           FunctionExpression<IntegerFunction1<T>> selector)
        Computes the average of a sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
      • averageNullableInteger

        java.lang.Integer averageNullableInteger​(Queryable<T> source,
                                                 FunctionExpression<NullableIntegerFunction1<T>> selector)
        Computes the average of a sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.
      • averageFloat

        float averageFloat​(Queryable<T> source,
                           FunctionExpression<FloatFunction1<T>> selector)
        Computes the average of a sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.
      • averageNullableFloat

        java.lang.Float averageNullableFloat​(Queryable<T> source,
                                             FunctionExpression<NullableFloatFunction1<T>> selector)
        Computes the average of a sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.
      • averageLong

        long averageLong​(Queryable<T> source,
                         FunctionExpression<LongFunction1<T>> selector)
        Computes the average of a sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
      • averageNullableLong

        java.lang.Long averageNullableLong​(Queryable<T> source,
                                           FunctionExpression<NullableLongFunction1<T>> selector)
        Computes the average of a sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.
      • contains

        boolean contains​(Queryable<T> source,
                         T element)
        Determines whether a sequence contains a specified element by using the default equality comparer.
      • contains

        boolean contains​(Queryable<T> source,
                         T element,
                         EqualityComparer<T> comparer)
        Determines whether a sequence contains a specified element by using a specified EqualityComparer<T>.
      • count

        int count​(Queryable<T> source)
        Returns the number of elements in a sequence.
      • defaultIfEmpty

        Queryable<T> defaultIfEmpty​(Queryable<T> source)
        Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.
      • defaultIfEmpty

        Queryable<T> defaultIfEmpty​(Queryable<T> source,
                                    T value)
        Returns the elements of the specified sequence or the specified value in a singleton collection if the sequence is empty.
      • distinct

        Queryable<T> distinct​(Queryable<T> source)
        Returns distinct elements from a sequence by using the default equality comparer to compare values.
      • distinct

        Queryable<T> distinct​(Queryable<T> source,
                              EqualityComparer<T> comparer)
        Returns distinct elements from a sequence by using a specified EqualityComparer<T> to compare values.
      • elementAt

        T elementAt​(Queryable<T> source,
                    int index)
        Returns the element at a specified index in a sequence.
      • elementAtOrDefault

        T elementAtOrDefault​(Queryable<T> source,
                             int index)
        Returns the element at a specified index in a sequence or a default value if the index is out of range.
      • except

        Queryable<T> except​(Queryable<T> source,
                            Enumerable<T> enumerable)
        Produces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Queryable.)
      • first

        T first​(Queryable<T> source)
        Returns the first element of a sequence. (Defined by Queryable.)
      • firstOrDefault

        T firstOrDefault​(Queryable<T> source)
        Returns the first element of a sequence, or a default value if the sequence contains no elements.
      • firstOrDefault

        T firstOrDefault​(Queryable<T> source,
                         FunctionExpression<Predicate1<T>> predicate)
        Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.
      • intersect

        Queryable<T> intersect​(Queryable<T> source,
                               Enumerable<T> enumerable)
        Produces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Queryable.)
      • last

        T last​(Queryable<T> source)
        Returns the last element in a sequence. (Defined by Queryable.)
      • lastOrDefault

        T lastOrDefault​(Queryable<T> source)
        Returns the last element in a sequence, or a default value if the sequence contains no elements.
      • lastOrDefault

        T lastOrDefault​(Queryable<T> source,
                        FunctionExpression<Predicate1<T>> predicate)
        Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
      • longCount

        long longCount​(Queryable<T> source)
        Returns an long that represents the total number of elements in a sequence.
      • max

        T max​(Queryable<T> source)
        Returns the maximum value in a generic IQueryable<T>.
      • max

        <TResult extends java.lang.Comparable<TResult>> TResult max​(Queryable<T> source,
                                                                    FunctionExpression<Function1<T,​TResult>> selector)
        Invokes a projection function on each element of a generic IQueryable<T> and returns the maximum resulting value.
      • min

        T min​(Queryable<T> source)
        Returns the minimum value in a generic IQueryable<T>.
      • min

        <TResult extends java.lang.Comparable<TResult>> TResult min​(Queryable<T> source,
                                                                    FunctionExpression<Function1<T,​TResult>> selector)
        Invokes a projection function on each element of a generic IQueryable<T> and returns the minimum resulting value.
      • ofType

        <TResult> Queryable<TResult> ofType​(Queryable<T> source,
                                            java.lang.Class<TResult> clazz)
        Filters the elements of an IQueryable based on a specified type.
      • reverse

        Queryable<T> reverse​(Queryable<T> source)
        Inverts the order of the elements in a sequence.
      • selectN

        <TResult> Queryable<TResult> selectN​(Queryable<T> source,
                                             FunctionExpression<Function2<T,​java.lang.Integer,​TResult>> selector)
        Projects each element of a sequence into a new form by incorporating the element's index.
      • selectManyN

        <TResult> Queryable<TResult> selectManyN​(Queryable<T> source,
                                                 FunctionExpression<Function2<T,​java.lang.Integer,​Enumerable<TResult>>> selector)
        Projects each element of a sequence to an Enumerable<T> and combines the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.
      • selectMany

        <TCollection,​TResult> Queryable<TResult> selectMany​(Queryable<T> source,
                                                                  FunctionExpression<Function2<T,​java.lang.Integer,​Enumerable<TCollection>>> collectionSelector,
                                                                  FunctionExpression<Function2<T,​TCollection,​TResult>> resultSelector)
        Projects each element of a sequence to an Enumerable<T> that incorporates the index of the source element that produced it. A result selector function is invoked on each element of each intermediate sequence, and the resulting values are combined into a single, one-dimensional sequence and returned.
      • selectManyN

        <TCollection,​TResult> Queryable<TResult> selectManyN​(Queryable<T> source,
                                                                   FunctionExpression<Function1<T,​Enumerable<TCollection>>> collectionSelector,
                                                                   FunctionExpression<Function2<T,​TCollection,​TResult>> resultSelector)
        Projects each element of a sequence to an Enumerable<T> and invokes a result selector function on each element therein. The resulting values from each intermediate sequence are combined into a single, one-dimensional sequence and returned.
      • sequenceEqual

        boolean sequenceEqual​(Queryable<T> source,
                              Enumerable<T> enumerable)
        Determines whether two sequences are equal by using the default equality comparer to compare elements.
      • sequenceEqual

        boolean sequenceEqual​(Queryable<T> source,
                              Enumerable<T> enumerable,
                              EqualityComparer<T> comparer)
        Determines whether two sequences are equal by using a specified EqualityComparer to compare elements.
      • single

        T single​(Queryable<T> source)
        Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
      • single

        T single​(Queryable<T> source,
                 FunctionExpression<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.
      • singleOrDefault

        T singleOrDefault​(Queryable<T> source)
        Returns 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.
      • singleOrDefault

        T singleOrDefault​(Queryable<T> source,
                          FunctionExpression<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

        Queryable<T> skip​(Queryable<T> source,
                          int count)
        Bypasses a specified number of elements in a sequence and then returns the remaining elements.
      • skipWhileN

        Queryable<T> skipWhileN​(Queryable<T> source,
                                FunctionExpression<Predicate2<T,​java.lang.Integer>> predicate)
        Bypasses 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.
      • sumBigDecimal

        java.math.BigDecimal sumBigDecimal​(Queryable<T> source,
                                           FunctionExpression<BigDecimalFunction1<T>> selector)
        Computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.
      • sumNullableBigDecimal

        java.math.BigDecimal sumNullableBigDecimal​(Queryable<T> source,
                                                   FunctionExpression<NullableBigDecimalFunction1<T>> selector)
        Computes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.
      • sumDouble

        double sumDouble​(Queryable<T> source,
                         FunctionExpression<DoubleFunction1<T>> selector)
        Computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.
      • sumNullableDouble

        java.lang.Double sumNullableDouble​(Queryable<T> source,
                                           FunctionExpression<NullableDoubleFunction1<T>> selector)
        Computes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.
      • sumInteger

        int sumInteger​(Queryable<T> source,
                       FunctionExpression<IntegerFunction1<T>> selector)
        Computes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
      • sumNullableInteger

        java.lang.Integer sumNullableInteger​(Queryable<T> source,
                                             FunctionExpression<NullableIntegerFunction1<T>> selector)
        Computes the sum of the sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.
      • sumLong

        long sumLong​(Queryable<T> source,
                     FunctionExpression<LongFunction1<T>> selector)
        Computes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
      • sumNullableLong

        java.lang.Long sumNullableLong​(Queryable<T> source,
                                       FunctionExpression<NullableLongFunction1<T>> selector)
        Computes the sum of the sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.
      • sumFloat

        float sumFloat​(Queryable<T> source,
                       FunctionExpression<FloatFunction1<T>> selector)
        Computes the sum of the sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.
      • sumNullableFloat

        java.lang.Float sumNullableFloat​(Queryable<T> source,
                                         FunctionExpression<NullableFloatFunction1<T>> selector)
        Computes the sum of the sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.
      • take

        Queryable<T> take​(Queryable<T> source,
                          int count)
        Returns a specified number of contiguous elements from the start of a sequence.
      • takeWhileN

        Queryable<T> takeWhileN​(Queryable<T> source,
                                FunctionExpression<Predicate2<T,​java.lang.Integer>> predicate)
        Returns 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.
      • union

        Queryable<T> union​(Queryable<T> source,
                           Enumerable<T> source1)
        Produces the set union of two sequences by using the default equality comparer.
      • whereN

        Queryable<T> whereN​(Queryable<T> source,
                            FunctionExpression<? extends Predicate2<T,​java.lang.Integer>> predicate)
        Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.