南昌做试管婴儿供卵包出生价格

██微信号█ 158★1484★6999 ██ ██试管包出生██代孕男孩██代孕包出生███代孕选性别████试管婴儿代孕生男孩███供卵试管婴儿代孕██

TimAndy 最后提交于 6小时前 edit change log
 
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md

LINQ to Objects (Java)

Build Status Codecov Maven Central GitHub release License

The term "LINQ to Objects" refers to the use of LINQ queries with any IEnumerable<T>. You can use LINQ to query any enumerable collections such as Primitive Array, Object Array, List, Collection or Iterable and so on. The collection may be user-defined or may be returned by a JDK API.

In a basic sense, LINQ to Objects represents a new approach to collections. In the old way, you had to write complex foreach loops that specified how to retrieve data from a collection. In the LINQ approach, you write declarative code that describes what you want to retrieve.

In addition, LINQ queries offer three main advantages over traditional foreach loops:

  1. They are more concise and readable, especially when filtering multiple conditions.
  2. They provide powerful filtering, ordering, and grouping capabilities with a minimum of application code.
  3. They can be ported to other data sources with little or no modification.

LINQ queries also have some advantages over stream API:

  1. Support foreach loops therefore you can break loop at any time.
  2. IEnumerable can be traversed repeatedly.
  3. LINQ is very easy to use, like ToCollection, LeftJoin and so on.
  4. LINQ is faster than stream API in most cases.

In general, the more complex the operation you want to perform on the data, the more benefit you will realize by using LINQ instead of traditional iteration techniques.

Features

  • Implemented all API of LINQ to Objects.
  • More API supported.
  • Tuple supported.
  • Cast IEnumerable to stream or parallel stream supported.

bestvike

API of Linq

  • empty
  • singleton
  • asEnumerable
  • range
  • repeat

API of IEnumerable

  • forEach
  • stream
  • parallelStream
  • aggregate
  • any
  • all
  • append
  • prepend
  • asEnumerable
  • average
  • ofType
  • cast
  • concat
  • contains
  • count
  • longCount
  • defaultIfEmpty
  • distinct
  • distinctBy
  • elementAt
  • elementAtOrDefault
  • except
  • exceptBy
  • first
  • firstOrDefault
  • groupBy
  • groupJoin
  • intersect
  • intersectBy
  • join
  • leftJoin
  • rightJoin
  • fullJoin
  • crossJoin
  • last
  • lastOrDefault
  • toLookup
  • max
  • maxBy
  • min
  • minBy
  • orderBy
  • orderByDescending
  • reverse
  • select
  • selectMany
  • sequenceEqual
  • single
  • singleOrDefault
  • skip
  • skipWhile
  • skipLast
  • sum
  • take
  • takeWhile
  • takeLast
  • toArray
  • toList
  • toMap
  • toSet
  • union
  • unionBy
  • where
  • zip

API of IGrouping extends IEnumerable

  • getKey

API of ILookup extends IEnumerable

  • getCount
  • get
  • containsKey

API of IOrderedEnumerable extends IEnumerable

  • thenBy
  • thenByDescending

Tuple classes

  • Tuple1
  • Tuple2
  • Tuple3
  • Tuple4
  • Tuple5
  • Tuple6
  • Tuple7
  • TupleMore

Maven

<dependency>
    <groupId>com.bestvike</groupId>
    <artifactId>linq</artifactId>
    <version>2.0.1</version>
</dependency>

猜你喜欢

转载自www.cnblogs.com/sgye/p/10933921.html