Package dij.io.proto.data

Examples of dij.io.proto.data.Peer


        }
    }

    public static Peer closest(HashKey key) { return closest(key, null); }
    public static Peer closest(HashKey key, HashSet<Integer> exclude) {
        Peer closest = null;
        for (Peer cp : _peers) {
            if (exclude != null && exclude.contains(cp.hashCode())) { continue; }
            if (closest == null || key.closerTo(cp.hash(), closest.hash())) {
                closest = cp;
            }
        }
        if (closest != null) {
            ///reposition?
View Full Code Here

TOP

Related Classes of dij.io.proto.data.Peer

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.