Menu

#9 Allow SUPPLIER on Iterable, Collection and Maps

Next Release
pending
nobody
None
5
2016-11-08
2016-11-06
No

Now that BSF4ooRexx is based on Java 1.6/6 it would be nice to allow all Java collection objects to be iterable using the ooRexx collection based SUPPLIER message. This would be possible by intercepting an unknown SUPPLIER message to the Java proxy, check it for having java.lang.Iterable, java.util.Collection, java.util.Map or java.util.Enumeration implemented and if so, create a supplier and return it.

Discussion

  • Rony G. Flatscher

    • status: open --> closed
     
  • Rony G. Flatscher

    This support has been added no only for java.lang.Iterable, but:

    java.lang.Iterable, java.util.Collection, java.util.Enumeration, java.util.Iterator, java.util.Map, and in addition fo any class object of type java.lang.Enum where its enum values are regarded as Map collection where the enum ordinal values are used as index and the enum object as its item.

     
  • Rony G. Flatscher

    • status: closed --> pending
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.