首页 / 词典 / good

iterable

  • 网络可迭代的;可重复的
iterableiterable
  1. Handle iteration manually , by defining your own implementation of Iterable .

    手动处理遍历,定义自己的Iterable实现。

  2. Extend an existing collection class that already implements Iterable ( and therefore already supports for / in ) .

    扩展现有的、已经实现了Iterable(因此也就已经支持for/in)的集合类。

  3. Actually , this enhancement works with any object that implements the Iterable interface , not just Collections .

    实际上,这个增强适用于实现Iterable接口的任何对象,而不仅仅是Collections。

  4. But , just like Iterable , the Enum class is not present in the JDK1.4 class library .

    但是,同Iterable一样,在JDK1.4类库中也没有Enum类。

  5. Trying to get an Iterator on a Map fails at compile time & Maps don 't implement the Iterable interface .

    在编译时,尝试对Map获取Iterator会导致失败&Map并没有实现Iterable接口。

  6. The Iterable options allow the client to pass additional compiler options that correspond to the javac options .

    Iterableoptions允许客户机传递额外的编译器选项,这些选项均对应于javac选项。

  7. For cases where the child collection is obvious and apparent , however , Iterable makes programming against the domain type much easier and more obvious .

    但是,如果孩子集合比较明显,Iterable可以使针对域类型的编程更容易,更直观。

  8. The reduce method is passed an Iterable whose type will be the type of the ( key , value ) pairs that are input to it .

    对reduce方法传递一个Iterable值,它的类型将是输入它的(key,value)对的类型。

  9. What it understands is scala . Iterable , which defines the basic behaviors for iterating across a collection .

    它所了解的是scala.Iterable,scala.Iterable定义了在集合上进行迭代的基本行为。

  10. When iterating over a non-Collection Iterable , the compiler produces an error .

    当在非集合的Iterable上迭代时,编译器生成错误。

  11. And , just like Iterable and Enum , the valueOf () methods are not present in the JDK1.4 class library .

    而且,就像Iterable和Enum一样,valueOf()方法在JDK1.4类库中也不存在。

  12. As you can see , though , it takes a lot more to implement the Iterable interface manually than simply extending a class that does this work for you .

    但是,您可以看到,与扩展一个现成的类来完成同样的工作相比,手动实现Iterable接口需要做的工作多得多。

  13. The enhanced for loop ( also sometimes known as " for-each " loop ) can be used for collections that implement the Iterable interface and for arrays .

    改进for循环(有时被称为“for-each”循环)能够用于实现了iterable接口的集合类及数组中。

  14. Using Iterable has some obvious drawbacks when domain modeling , because only one such collection of objects can be so " implicitly " supported via the iterator () method .

    在域建模的时候,使用Iterable有一些明显的缺陷,因为通过iterator()方法只能那么“隐晦”地支持一个那样的对象集合。

  15. The for-each loop : Retroweaver provides an implementation of the Iterable interface and rewrites classes that implement Iterable to implement its own version instead .

    for-each循环:Retroweaver提供了Iterable接口的实现,把实现Iterable的类重写成实现它自己版本的类。

  16. Anything that provides an Iterable facility ( technically a trait in Scala , but think of it for now as an interface ) can be used as the heart of the for expression .

    提供Iterable功能(从技术上说,它是Scala中的一个特征,但现在将它视为一个接口)的任何东西都可以用作for表达式的核心。