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

com.infomaximum.network.struct.info.TransportInfo Maven / Gradle / Ivy

The newest version!
package com.infomaximum.network.struct.info;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class TransportInfo {

    private final List connectorsInfo;

    public TransportInfo() {
        this.connectorsInfo = new ArrayList<>();
    }

    public void addConnectorInfo(HttpConnectorInfo httpConnectorInfo) {
        connectorsInfo.add(httpConnectorInfo);
    }

    public List getConnectorsInfo() {
        return Collections.unmodifiableList(connectorsInfo);
    }

    @Override
    public String toString() {
        return "Transport{" +
                "connectors=" + connectorsInfo +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy