Examples of ReadOnlyList


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

Examples of org.jasen.util.ReadOnlyList

     * result in an UnsupportedOperationException
     * @return A list of PluginContainer objects containing the registered plugins
     * @see org.jasen.core.PluginContainer
     */
    public List getPlugins() {
        return new ReadOnlyList(jasen.getPlugins());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.