Package java.util

Examples of java.util.List.clear()


      if (!comargs.isEmpty()) {
        String command = ((String) comargs.get(0)).toLowerCase();
        if( ".".equals(command) )
        {
          if (oldcommand != null) {
            comargs.clear();
            comargs.addAll(oldcommand);
            command = ((String) comargs.get(0)).toLowerCase();
          } else {
            out.println("No old command. Remove commands are not repeated to prevent errors");
          }
View Full Code Here


    }

    public synchronized void resetStats(String name) {
        List stats = getStats(name);
        if (stats != null) {
            stats.clear();
        }
    }

    public synchronized List getStats(String name) {
        return (List) statsData.get(name);
View Full Code Here

       throws TeiidComponentException, TeiidProcessingException{
    List joinCrits = predicate.getJoinCriteria();
    if(joinCrits != null && joinCrits.size() > 0) {
      //rewrite join crits by rewriting a compound criteria
      Criteria criteria = new CompoundCriteria(new ArrayList(joinCrits));
            joinCrits.clear();
            criteria = rewriteCriteria(criteria);
            if (criteria instanceof CompoundCriteria && ((CompoundCriteria)criteria).getOperator() == CompoundCriteria.AND) {
                joinCrits.addAll(((CompoundCriteria)criteria).getCriteria());
            } else {
                joinCrits.add(criteria);
View Full Code Here

    }

    public void setGeometry(Shape shape) {
        // dump the list, create a generic IconPart to hold the shape.
        List list = getList();
        list.clear();
        list.add(new BasicIconPart(shape));
    }

    /**
     * If you ask a IconPartList for its geometry, it will combine all
View Full Code Here

        List al = new ArrayList();
        al.add("application/vnd.ogc.wms_xml");
        setFormats(FMT_GETCAPS, al);

        al.clear();
        al.add(HttpConnection.CONTENT_PLAIN);
        al.add(HttpConnection.CONTENT_HTML);
        // TODO: support other formats like application/vnd.ogc.gml and text/xml?
        // TODO: configurable or perhaps gettable from the FeatureInfoResponse
        setFormats(FMT_GETFEATUREINFO, al);
View Full Code Here

        al.add(HttpConnection.CONTENT_HTML);
        // TODO: support other formats like application/vnd.ogc.gml and text/xml?
        // TODO: configurable or perhaps gettable from the FeatureInfoResponse
        setFormats(FMT_GETFEATUREINFO, al);

        al.clear();
        al.add("application/vnd.ogc.se_xml");
        setFormats(FMT_EXCEPTIONS, al);
    }

    /**
 
View Full Code Here

                            // the best possible scale. If new scale
                            // difference
                            // is strictly better, remove other
                            // entries
                            if (newScaleDiff < bestScaleDiff) {
                                coverageEntries.clear();
                            }
                            coverageEntries.add(currentEntry);

                            bestEntry = currentEntry;
                            prevBoundaryHits = hits;
View Full Code Here

                            }
                        } else if (betterScale
                                && currentEntry.coverage.getPercentCoverage() > 0f) {

                            if (newScaleDiff < bestScaleDiff) {
                                coverageEntries.clear();
                            }
                            coverageEntries.add(currentEntry);

                        }
View Full Code Here

                        Debug.output("ASRPDirHandler: SETTING new diff ("
                                + scaleDiff + ") adding ASRPDirectory "
                                + current.dir);
                    }
                    bestScaleDiff = scaleDiff;
                    currentBestASRPs.clear();
                    currentBestASRPs.add(current);
                } else if (scaleDiff == bestScaleDiff) {
                    if (Debug.debugging("asrp")) {
                        Debug.output("ASRPDirHandler: USING current diff ("
                                + scaleDiff + ") adding ASRPDirectory "
View Full Code Here

               thread.setStack((String[])stack.toArray(new String[stack.size()]));
               map.put(thread.getThreadId(), thread);
            }
            thread = new ThreadUtility();
            thread.setHead(line);
            stack.clear();
         }
         else {
            if (line.length() > 0)
               stack.add(line);
         }
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.