Class LinqIterable

  • All Implemented Interfaces:
    java.lang.Iterable

    public class LinqIterable
    extends java.lang.Object
    implements java.lang.Iterable
    Adapts the wrapped Iterable to be used in a Linq context. It allows iterables containing maps and by default it converts the entries to a String to maximise the compatibility with Linq.
    See Also:
    LinqContext
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Iterable iterable  
    • Constructor Summary

      Constructors 
      Constructor Description
      LinqIterable​(java.lang.Iterable iterable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator iterator()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • iterable

        protected final java.lang.Iterable iterable
    • Constructor Detail

      • LinqIterable

        public LinqIterable​(java.lang.Iterable iterable)
    • Method Detail

      • iterator

        public java.util.Iterator iterator()
        Specified by:
        iterator in interface java.lang.Iterable
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object