SingletonIterator is an {@link Iterator} over a single object instance.
SingletonIterator
153154155156157158159160
Collection collection = (Collection) value; return collection.iterator(); } else { // XXX: should we return single iterator? return new SingletonIterator( value ); } }
356357358359360361362363
String value = evaluateAsString(context); if ( value == null ) { return Collections.EMPTY_LIST.iterator(); } else { return new SingletonIterator( value ); } }