Package com.scratchdisk.list

Examples of com.scratchdisk.list.ReadOnlyList


  }

  public Object getDefaultValue(Class hint) {
    if (hint == null || hint == ScriptRuntime.StringClass) {
      StringBuffer buffer = new StringBuffer();
      ReadOnlyList list = (ReadOnlyList) javaObject;
      for (int i = 0, l = list.size(); i < l; i++) {
        if (i > 0)
          buffer.append(",");
        Object entry = list.get(i);
        if (entry != null) {
                  Scriptable obj = Context.toObject(entry, this);
                  buffer.append(obj.getDefaultValue(hint));
        } else {
            buffer.append("null");
View Full Code Here

TOP

Related Classes of com.scratchdisk.list.ReadOnlyList

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.