All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.relay_server.Utils Maven / Gradle / Ivy

The newest version!
package org.jgroups.relay_server;

import java.util.Collection;
import java.util.stream.Collectors;

/**
 * @author Bela Ban
 * @since x.y
 */
public class Utils {
    public static String print(View v) {
        return String.format("[%s]", v.getMemberList().stream().map(Address::getName).collect(Collectors.joining(", ")));
    }

    public static String print(Collection
addresses) { return String.format("[%s]", addresses.stream().map(Address::getName).collect(Collectors.joining(", "))); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy