spring-geode/src/main/java/org/springframework/geode/core/env/support/CloudCacheService.java
/**
		 * Factory method used to parse an individual {@link String host[port]} network endpoint for a Locator.
		 *
		 * @param hostPort {@link String} containing the Locator host and port to parse.
		 * @return a new {@link Locator} configured from the given {@link String}.
		 * @throws IllegalArgumentException if the {@link String hostPort} are not valid.
		 * @see #parseHost(String)
		 * @see #parsePort(String)
		 * @see #newLocator(String, int)
		 */
Factory method used to parse an individual  String host[port] network endpoint for a Locator.
@param hostPort  String containing the Locator host and port to parse.
@return a new  Locator configured from the given  String.
@throws IllegalArgumentException if the  String hostPort are not valid.
Factory method used to parse an individual String host [ port ] network endpoint for a Locator . @param hostPort String containing the Locator host and port to parse . @return a new Locator configured from the given String . @throws IllegalArgumentException if the String hostPort are not valid .
public static Locator parse(String hostPort) {
			return Optional.ofNullable(hostPort)
				.filter(StringUtils::hasText)
				.map(it -> {
					String host = parseHost(it);
					int port = parsePort(it);
					return newLocator(host, port);
				})
				.orElseThrow(() -> newIllegalArgumentException("Locator host/port [%s] is not valid", hostPort));
		}
public static Locator parse ( String hostPort ) { return Optional . ofNullable ( hostPort ) . filter ( StringUtils :: hasText ) . map ( it -> { String host = parseHost ( it ) ; int port = parsePort ( it ) ; return newLocator ( host , port ) ; } ) . orElseThrow ( ( ) -> newIllegalArgumentException ( "Locator host/port [%s] is not valid" , hostPort ) ) ; }
Factory method used to parse an individual {@link String host[port]} network endpoint for a Locator.
Factory method used to parse an individual { @link String host [ port ] } network endpoint for a Locator .