Package java.util

Examples of java.util.HashSet.toArray()


                mutator.commit();
                //
                modifiedTasks.add(nextNested);
            }
        }
        run((Task[])modifiedTasks.toArray(new Task[0]));
        RecalculateTaskScheduleAlgorithm alg = new RecalculateTaskScheduleAlgorithm(this) {
            protected TaskContainmentHierarchyFacade createContainmentFacade() {
                return AdjustTaskBoundsAlgorithm.this.createContainmentFacade();
            }
        };
View Full Code Here


            // Initialise the MetaDataManager using the mapping files and class names
            FileMetaData[] filemds1 = metaDataMgr.loadMetadataFiles(
                (String[])metadataFiles.toArray(new String[metadataFiles.size()]), null);
            FileMetaData[] filemds2 = metaDataMgr.loadClasses(
                (String[])classNames.toArray(new String[classNames.size()]), null);
            filemds = new FileMetaData[filemds1.length + filemds2.length];
            int pos = 0;
            for (int i=0;i<filemds1.length;i++)
            {
                filemds[pos++] = filemds1[i];
View Full Code Here

                String className = entry.substring(0, entry.length()-6); // Omit ".class"
                className = className.replace(file_separator, ".");
                classes.add(className);
            }
        }
        return (String[])classes.toArray(new String[classes.size()]);
    }

    /**
     * Convenience accessor for the names of all "package.jdo" files in the jar file with the specified name.
     * @param jarFileName Name of the jar file
View Full Code Here

            if (entry.endsWith(suffix))
            {
                files.add(entry);
            }
        }
        return (String[])files.toArray(new String[files.size()]);
    }

    /**
     * Convenience method to return the names of classes specified in the directory and below.
     * All inner classes are ignored.
View Full Code Here

                if (!validated)
                {
                    // Why is this wrapping all exceptions into 1 single exception?
                    // This needs coordinating with the test expectations in the enhancer unit tests.
                    throw new NucleusUserException(LOCALISER_API.msg("019016", obj_cls.getName()),
                        (Throwable[]) errors.toArray(new Throwable[errors.size()]));
                }
            }
        }
    }
View Full Code Here

            {
                results.add(fgmd);
            }
        }
        FetchGroupMetaData[] result = new FetchGroupMetaData[results.size()];
        results.toArray(result);
        return result;
    }

    /**
     * Accessor for the fetch group metadata for the group specified.
View Full Code Here

                        }
                    }
                }
                if (relatedFields.size() > 0)
                {
                    relatedMemberMetaData = (AbstractMemberMetaData[])relatedFields.toArray(new AbstractMemberMetaData[relatedFields.size()]);
                    relatedFields.clear();
                    relatedFields = null;
                }
                else
                {
View Full Code Here

                }
                throw new Error( "Unable to find unambiguously defined class '" + className + "', candidates are: [" + sb.toString( ) + "]" );
            }
            else if ( validClazzCandidates.size( ) == 1 )
            {
                clazz = (Class) validClazzCandidates.toArray( )[0];
            }
            else
            {
                clazz = null;
            }
View Full Code Here

        }
        if (exceptions.size() > 0)
        {
            // Exceptions while loading annotations
            throw new NucleusUserException(LOCALISER.msg("044016"),
                (Throwable[]) exceptions.toArray(new Throwable[exceptions.size()]),null);
        }

        if (fileMetaData.size() > 0)
        {
            // Populate/Initialise all loaded FileMetaData
View Full Code Here

            }
        }
        if (exceptions.size() > 0)
        {
            throw new NucleusUserException(LOCALISER.msg("044024", jarFileName),
                (Throwable[])exceptions.toArray(new Throwable[exceptions.size()]));
        }

        if (fileMetaData.size() > 0)
        {
            // Populate/Initialise all loaded FileMetaData
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.