Examples of Contest


Examples of ru.syktsu.projects.oko2.server.objects.Contest

        return result;
    }

    public static Contest convert(JaxbContest input) {
        Contest result = new Contest();
        result.setEndTime(input.endTime);
        result.setFreezeTime(input.freezeTime);
        result.setId(input.id);
        result.setMetadata(convert(input.metadata));
        result.setName(input.name);

        //if (null == input.participants) {
        //    result.setParticipants(null);
        //} else {
        //    result.setParticipants(new ArrayList<String>());
        //
        //    for (String participantId : input.participants) {
        //        result.getParticipants().add(participantId);
        //   }
        if (null != input.participants) result.getParticipants().addAll(input.participants);      
        // }

        //if (null == input.problems) {
        //    result.setProblems(null);
        //} else {
        //    result.setProblems(new ArrayList<String>());
        //    for (String problemsId : input.problems) {
        //        result.getProblems().add(problemsId);
        //    }
        //}
        result.getProblems().addAll(input.problems);
        
        result.setPublished(input.published);
        result.setStartTime(input.startTime);

        return result;
    }
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.