Package railo.runtime.util

Examples of railo.runtime.util.ArrayIterator


    return new EntryIterator(this, keys());
  }

  @Override
  public Iterator<Object> valueIterator() {
    return new ArrayIterator(data,0,size);
  }
View Full Code Here


        if(o instanceof Iterator) return (Iterator)o;
        else if(o instanceof Iteratorable) return ((Iteratorable)o).keysAsStringIterator();
        else if(o instanceof Enumeration) return new IteratorWrapper((Enumeration)o);
        else if(o instanceof JavaObject) {
          String[] names = ClassUtil.getFieldNames(((JavaObject)o).getClazz());
          return new ArrayIterator(names);
        }
        else if(o instanceof ObjectWrap) return toIterator(((ObjectWrap)o).getEmbededObject());
    return toIterator(toCollection(o));
    }
View Full Code Here

  public Iterator<Object> valueIterator() {
    Object[] values=new Object[getLength()];
    for(int i=0;i<values.length;i++) {
      values[i]=item(i);
    }
    return new ArrayIterator(values);
  }
View Full Code Here

TOP

Related Classes of railo.runtime.util.ArrayIterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.