/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, Iterator<Integer> ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, Capture<Integer> port) { return new WellKnownAddress(address, port); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, Capture<Integer> port) { return new WellKnownAddress(address, port); }
/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, Iterator<Integer> ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, Iterator<Integer> ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, AvailablePortIterator ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, AvailablePortIterator ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and ports. * * @param address the address of the {@link WellKnownAddress} * @param ports the ports of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and ports */ public static WellKnownAddress of(String address, AvailablePortIterator ports) { return new WellKnownAddress(address, ports); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, Capture<Integer> port) { return new WellKnownAddress(address, port); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, int port) { return new WellKnownAddress(address, new PerpetualIterator<>(port)); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, int port) { return new WellKnownAddress(address, new PerpetualIterator<>(port)); }
/** * Obtains a {@link WellKnownAddress} for a specified address and port. * * @param address the address of the {@link WellKnownAddress} * @param port the port of the {@link WellKnownAddress} * * @return a {@link WellKnownAddress} for the specified address and port */ public static WellKnownAddress of(String address, int port) { return new WellKnownAddress(address, new PerpetualIterator<>(port)); }