class PortSet implements Sc2ApiSerializable<Sc2Api.PortSet> {

    public static PortSet of(int gamePort, int basePort) {
        if (!portIsValid(gamePort) || !portIsValid(basePort))
            throw new IllegalArgumentException("port must be greater than 0");
        return new PortSet(gamePort, basePort);
    }

    private  PortSet(int gamePort, int basePort);

}