/** * Obtains a {@link LocalHost} for a specified address. * * @param address the address of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address */ public static LocalHost of(String address) { return new LocalHost(address, null); }
/** * Obtains a {@link LocalHost} configured for "local host only" mode. * * @return a {@link LocalHost} for local-only mode */ public static LocalHost only() { return new LocalHost(null, null); }
/** * Obtains a {@link LocalHost} for a specified address. * * @param address the address of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address */ public static LocalHost of(String address) { return new LocalHost(address, null); }
/** * Obtains a {@link LocalHost} configured for "local host only" mode. * * @return a {@link LocalHost} for local-only mode */ public static LocalHost only() { return new LocalHost(null, null); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, AvailablePortIterator ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, Iterator<Integer> ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address. * * @param address the address of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address */ public static LocalHost of(String address) { return new LocalHost(address, null); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, Capture<Integer> port) { return new LocalHost(address, port); }
/** * Obtains a {@link LocalHost} configured for "local host only" mode. * * @return a {@link LocalHost} for local-only mode */ public static LocalHost only() { return new LocalHost(null, null); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, Iterator<Integer> ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, AvailablePortIterator ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, Capture<Integer> port) { return new LocalHost(address, port); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, Iterator<Integer> ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address and ports. * * @param address the address of the {@link LocalHost} * @param ports the ports of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and ports */ public static LocalHost of(String address, AvailablePortIterator ports) { return new LocalHost(address, ports); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, Capture<Integer> port) { return new LocalHost(address, port); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, int port) { return new LocalHost(address, new PerpetualIterator<>(port)); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, int port) { return new LocalHost(address, new PerpetualIterator<>(port)); }
/** * Obtains a {@link LocalHost} for a specified address and port. * * @param address the address of the {@link LocalHost} * @param port the port of the {@link LocalHost} * * @return a {@link LocalHost} for the specified address and port */ public static LocalHost of(String address, int port) { return new LocalHost(address, new PerpetualIterator<>(port)); }