List of usage examples for java.util SortedSet addAll
boolean addAll(Collection<? extends E> c);
From source file:org.sakuli.services.forwarder.AbstractOutputBuilderTest.java
@Test(dataProvider = "testGenerateTestCaseStepInformationDP") public void testGenerateTestCaseStepInformation(TestCaseStep[] testCaseSteps, String expectedTestCaseStepInformation) throws Exception { SortedSet<TestCaseStep> input = new TreeSet<>(); input.addAll(Arrays.asList(testCaseSteps)); assertEquals(AbstractOutputBuilder.generateStepInformation(input), expectedTestCaseStepInformation); }
From source file:net.sourceforge.fenixedu.presentationTier.Action.gep.TeachingStaffDispatchAction.java
public ActionForward selectExecutionDegree(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws FenixServiceException { DynaActionForm dynaActionForm = (DynaActionForm) actionForm; String degreeCurricularPlanID = (String) dynaActionForm.get("degreeCurricularPlanID"); String executionYearID = (String) dynaActionForm.get("executionYearID"); Set<DegreeModuleScope> degreeModuleScopes = ReadActiveCurricularCourseScopesByDegreeCurricularPlanIDAndExecutionYearID .run(degreeCurricularPlanID, executionYearID); SortedSet<DegreeModuleScope> sortedScopes = new TreeSet<DegreeModuleScope>( DegreeModuleScope.COMPARATOR_BY_NAME); sortedScopes.addAll(degreeModuleScopes); InfoExecutionYear infoExecutionYear = ReadExecutionYearByID.run(executionYearID); request.setAttribute("sortedScopes", sortedScopes); request.setAttribute("executionYear", infoExecutionYear.getYear()); return mapping.findForward("chooseExecutionCourse"); }
From source file:net.sourceforge.fenixedu.presentationTier.Action.academicAdministration.student.equivalencies.CurricularCourseEquivalenciesDA.java
private void setInfoDegreesToManage(final HttpServletRequest request, final User userView) throws FenixServiceException { final SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID); degrees.addAll(AcademicAuthorizationGroup.getDegreesForOperation(AccessControl.getPerson(), AcademicOperationType.MANAGE_EQUIVALENCES)); request.setAttribute("infoDegrees", degrees); }
From source file:org.fenixedu.academic.ui.struts.action.academicAdministration.student.equivalencies.CurricularCourseEquivalenciesDA.java
private void setInfoDegreesToManage(final HttpServletRequest request, final User userView) throws FenixServiceException { final SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID); degrees.addAll(AcademicAccessRule .getDegreesAccessibleToFunction(AcademicOperationType.MANAGE_EQUIVALENCES, Authenticate.getUser()) .collect(Collectors.toSet())); request.setAttribute("infoDegrees", degrees); }
From source file:net.sourceforge.fenixedu.presentationTier.Action.academicAdministration.student.equivalencies.CurricularCourseEquivalenciesDA.java
private void setInfoDegreesToAdd(final HttpServletRequest request, final User userView) throws FenixServiceException { final SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID); degrees.addAll(Degree.readAllByDegreeType(DegreeType.DEGREE)); degrees.addAll(Degree.readAllByDegreeType(DegreeType.BOLONHA_DEGREE)); degrees.addAll(Degree.readAllByDegreeType(DegreeType.BOLONHA_INTEGRATED_MASTER_DEGREE)); degrees.addAll(Degree.readAllByDegreeType(DegreeType.BOLONHA_MASTER_DEGREE)); degrees.addAll(Degree.readAllByDegreeType(DegreeType.BOLONHA_ADVANCED_FORMATION_DIPLOMA)); request.setAttribute("infoDegrees", degrees); }
From source file:org.fenixedu.academic.ui.struts.action.academicAdministration.student.equivalencies.CurricularCourseEquivalenciesDA.java
private void setInfoDegreesToAdd(final HttpServletRequest request, final User userView) throws FenixServiceException { final SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID); degrees.addAll(Degree.readAllMatching(DegreeType::isPreBolonhaDegree)); degrees.addAll(Degree.readAllMatching(DegreeType::isBolonhaDegree)); degrees.addAll(Degree.readAllMatching(DegreeType::isIntegratedMasterDegree)); degrees.addAll(Degree.readAllMatching(DegreeType::isBolonhaMasterDegree)); degrees.addAll(Degree.readAllMatching(DegreeType::isAdvancedFormationDiploma)); request.setAttribute("infoDegrees", degrees); }
From source file:org.dkpro.tc.fstore.simple.SparseFeatureStore.java
@Override public SortedSet<String> getUniqueOutcomes() { SortedSet<String> result = new TreeSet<>(); for (String[] outcomes : outcomeList) { result.addAll(Arrays.asList(outcomes)); }/*w w w .java2 s . c o m*/ return result; }
From source file:pt.ist.bennu.core.domain.VirtualHost.java
public SortedSet<Node> getOrderedTopLevelNodes() { final SortedSet<Node> nodes = new TreeSet<>(INode.COMPARATOR_BY_ORDER); nodes.addAll(getTopLevelNodesSet()); return nodes; }
From source file:gov.nih.nci.caarray.upgrade.FixIlluminaGenotypingCsvDesignProbeNamesMigrator.java
private SortedSet<PhysicalProbe> getSortedProbeList(ArrayDesign orrayDesign) { final Comparator<PhysicalProbe> comparator = getPhysicalProbeIdComparator(); final SortedSet<PhysicalProbe> probes = new TreeSet<PhysicalProbe>(comparator); probes.addAll(orrayDesign.getDesignDetails().getProbes()); return probes; }
From source file:twitter4j.Annotation.java
/** * @return a sorted set of the attributes' names *///from www .j a v a 2s .c om private SortedSet<String> sortedNames() { SortedSet<String> names = new TreeSet<String>(); names.addAll(getAttributes().keySet()); return names; }