• Handle iteration manually, by defining your own implementation of Iterable.

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

    youdao

  • And, just like Iterable and Enum, the valueOf methods are not present in the JDK 1.4 class library.

    而且,就像Iterable和Enum一样,value Of方法在JD K 1.4类库中也不存在。

    youdao

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

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

    youdao

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

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

    youdao

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

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

    youdao

  • 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)对的类型。

    youdao

  • 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接口的集合类及数组中。

    youdao

  • 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接口需要做的工作多得多。

    youdao

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

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

    youdao

  • The csv.writer method produces a CSV file from an iterable object; cursor.fetchall() is a bit of a beast, and four lines are enough to produce the CSV output.

    writer方法从一个可迭代的对象生成一个CSV文件;cursor.fetchall() 功能强大,4 个代码行就足以生成 CSV 输出。

    youdao

  • 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表达式的核心。

    youdao

  • 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方法只能那么“隐晦”地支持一个那样的对象集合。

    youdao

  • 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方法只能那么“隐晦”地支持一个那样的对象集合。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定