How can Iterable keep objects?



  • There's a signature of the method: Iterable<Task> incoming(Iterable<Task> tasks, Date start, Date end).

    Storage method Taskwhich are performed between start and end

    Question: How does it work? Iterable♪ What are they keeping?



  • Iterable - it's an interface. He doesn't keep anything in himself, he gives himself Conduct♪ In this case, behaviour is a diversion of elements. It's a little short. I recommend reading http://habrahabr.ru/post/30444/ On this subject.

    Method signal Iterable<Task> incoming(Iterable<Task> tasks, Date start, Date end) Says that a collection, parameterized by type, will be presented as the first argument Task and which implements the interface Iterable♪ Next, this collection can take iteratoras this method is announced in the interface Iterableby which to circumvent the coming collection


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2