Package java.util

Examples of java.util.SortedSet.toArray()


                    throw new Error(errorMessage);
                }
            }
        }

        return (BeanProperty[]) propSet.toArray(new BeanProperty[0]);
    }

    public PkMetadata collectPkHierarchy(JavaClass javaClass) {
        PkMetadata retVal = null;
View Full Code Here


      {
        // Set up a custom drawing supplier that cycles through the user's colors
        // instead of the default colors.
        Color[] colors = new Color[seriesColors.size()];
        JRSeriesColor[] colorSequence = new JRSeriesColor[seriesColors.size()];
        seriesColors.toArray(colorSequence);
        for (int i = 0; i < colorSequence.length; i++)
        {
          colors[i] = colorSequence[i].getColor();
        }
View Full Code Here

      int seriesColorsSize = seriesColors.size();
     
      colors = new Paint[DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length + seriesColorsSize];

      JRSeriesColor[] jrColorSequence = new JRSeriesColor[seriesColorsSize];
      seriesColors.toArray(jrColorSequence);
      colorSequence = new Paint[seriesColorsSize];
     
      for (int i = 0; i < seriesColorsSize; i++)
      {
        colorSequence[i] = jrColorSequence[i].getColor();
View Full Code Here

      int seriesColorsSize = seriesColors.size();
     
      colors = new Paint[DefaultDrawingSupplier.DEFAULT_PAINT_SEQUENCE.length + seriesColorsSize];

      JRSeriesColor[] jrColorSequence = new JRSeriesColor[seriesColorsSize];
      seriesColors.toArray(jrColorSequence);
      colorSequence = new Paint[seriesColorsSize];
     
      for (int i = 0; i < seriesColorsSize; i++)
      {
        colorSequence[i] = jrColorSequence[i].getColor();
View Full Code Here

    SortedSet set = new TreeSet(Util.bundleIdComparator);
    for(int i = 0; i < bl.length; i++) {
      set.add(bl[i]);
    }

    set.toArray(bl);

    return bl;
  }

View Full Code Here

               // Fall back to a Collection scan
               SortedSet set = new TreeSet();
               RecordSet rs = context.getFiler().getRecordSet();
               while ( rs.hasMoreRecords() )
                  set.add(rs.getNextKey());
               keySet = (Key[])set.toArray(EmptyKeys);
            }

            return new ResultSet(context, pr, keySet, query);
         }
         catch ( Exception e ) {
View Full Code Here

    */
   public static Key[] getUniqueKeys(IndexMatch[] matches) {
      SortedSet set = new TreeSet();
      for ( int i = 0; i < matches.length; i++ )
         set.add(matches[i].getKey());
      return (Key[])set.toArray(EmptyKeys);
   }

   /**
    * andKeySets takes several sets of unique Keys and returns the
    * ANDed set (elements that exist in all sets).  The first dimension
View Full Code Here

         }
         if ( !eq )
            highs.clear();
      }

      return (Key[])set.toArray(EmptyKeys);
   }

   /**
    * orKeySets takes several sets of unique Keys and returns the
    * ORed set (all unique elements).  The first dimension of the
View Full Code Here

      for ( int i = 0; i < keySets.length; i++ )
         for ( int j = 0; j < keySets[i].length; j++ )
            set.add(keySets[i][j]);

      return (Key[])set.toArray(EmptyKeys);
   }
  
   /**
    * normalizeString normalizes the specific String by stripping
    * all leading, trailing, and continuous runs of white space.
View Full Code Here

                    Modifier.isPublic(mods));
            m.add(vma);
        }

        members = new ValueMemberAnalysis[m.size()];
        members = (ValueMemberAnalysis[]) m.toArray(members);

        // Get superclass analysis
        Class superClass = cls.getSuperclass();
        if (superClass == java.lang.Object.class)
            superClass = null;
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.