Package org.agilewiki.jid.basics

Source Code of org.agilewiki.jid.basics.Users

package org.agilewiki.jid.basics;

import org.agilewiki.jactor.RP;
import org.agilewiki.jid._Jid;
import org.agilewiki.jid.collection.vlenc.map.MapEntry;
import org.agilewiki.jid.collection.vlenc.map.StringMapJid;
import org.agilewiki.jid.scalar.vlens.string.StringJid;

import java.util.Iterator;

public class Users extends StringMapJid implements Main {
    @Override
    public void processRequest(Proc request, RP rp) throws Exception {
        initializeList();
        Iterator<_Jid> it = list.iterator();
        while (it.hasNext()) {
            MapEntry<String, StringJid> tj = (MapEntry) it.next();
            String name = tj.getKey();
            StringJid email = (StringJid) tj.getValue();
            System.out.println("name: " + name + ", email: " + email.getValue());
        }
        rp.processResponse(null);
    }
}
TOP

Related Classes of org.agilewiki.jid.basics.Users

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.