Package gov.nysenate.services.model

Examples of gov.nysenate.services.model.Committee


        return lbd.getSenateCommittees();
    }

    public ArrayList<Committee> insertsectCommittees(ArrayList<String> committeeNames, ArrayList<Committee> committees) {
        for(int i = committees.size()-1; i >= 0; i--) {
            Committee committee = committees.get(i);

            if(!committeeNames.contains(committee.getName())) {
                committees.remove(i);
                continue;
            }

            setMemberKeys(committee.getChairs());
            setMemberKeys(committee.getMembers());
        }
        return committees;
    }
View Full Code Here


        if (!committeesDir.exists()) committeesDir.mkdirs();

        ArrayList<Committee> committees = new ArrayList<Committee>();
        for (File committeeFile : FileUtils.listFiles(committeesDir, new String[]{"json"}, false)) {
            Committee committee = mapper.readValue(committeeFile, Committee.class);
            ArrayList<Member> members = committee.getMembers();
            Collections.sort(members, new Comparator<Member>() {
                public int compare(Member a, Member b) {
                    return a.getShortName().compareToIgnoreCase(b.getShortName());
                }
            });
            committee.setMembers(members);
            committees.add(committee);
        }

        Collections.sort(committees, new Comparator<Committee>() {
            public int compare(Committee a, Committee b) {
View Full Code Here

TOP

Related Classes of gov.nysenate.services.model.Committee

Copyright © 2018 www.massapicom. 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.