@Test(expected = IllegalArgumentException.class) public void testInvalidCoordinateString1() { ServiceCoordinate.parse(".."); }
public static ServiceCoordinate parse(final String serviceCoordinateString) { final Matcher matcher = COORDINATE_PATTERN.matcher(serviceCoordinateString); if (!matcher.matches()) { return null; } final String[] path = new String[] {matcher.group(3), matcher.group(2), matcher.group(1)}; return new ServiceCoordinate(new CloudnamePath(path)); }
ServiceCoordinate { public static ServiceCoordinate parse(final String serviceCoordinateString) { final Matcher matcher = COORDINATE_PATTERN.matcher(serviceCoordinateString); if (!matcher.matches()) { return null; } final String[] path = new String[] {matcher.group(3), matcher.group(2), matcher.group(1)}; return new ServiceCoordinate(new CloudnamePath(path)); } }
ServiceCoordinate { public static ServiceCoordinate parse(final String serviceCoordinateString) { final Matcher matcher = COORDINATE_PATTERN.matcher(serviceCoordinateString); if (!matcher.matches()) { return null; } final String[] path = new String[] {matcher.group(3), matcher.group(2), matcher.group(1)}; return new ServiceCoordinate(new CloudnamePath(path)); } ServiceCoordinate(final CloudnamePath path); }
ServiceCoordinate { public static ServiceCoordinate parse(final String serviceCoordinateString) { final Matcher matcher = COORDINATE_PATTERN.matcher(serviceCoordinateString); if (!matcher.matches()) { return null; } final String[] path = new String[] {matcher.group(3), matcher.group(2), matcher.group(1)}; return new ServiceCoordinate(new CloudnamePath(path)); } ServiceCoordinate(final CloudnamePath path); String getRegion(); String getTag(); String getService(); static ServiceCoordinate parse(final String serviceCoordinateString); @Override boolean equals(final Object otherInstance); @Override int hashCode(); }
ServiceCoordinate { public static ServiceCoordinate parse(final String serviceCoordinateString) { final Matcher matcher = COORDINATE_PATTERN.matcher(serviceCoordinateString); if (!matcher.matches()) { return null; } final String[] path = new String[] {matcher.group(3), matcher.group(2), matcher.group(1)}; return new ServiceCoordinate(new CloudnamePath(path)); } ServiceCoordinate(final CloudnamePath path); String getRegion(); String getTag(); String getService(); static ServiceCoordinate parse(final String serviceCoordinateString); @Override boolean equals(final Object otherInstance); @Override int hashCode();  }