@Test public final void testTagNameStartsWithOther() { ServicePort s = new ServicePort(); s.tags = "http state moo"; assertFalse(s.hasTags("htt")); }
public boolean hasTags(String... tag) { if (tags == null) { return false; } List<String> isTaggedWith = splitOnSpace.splitToList(tags); for (String t : tag) { if (!isTaggedWith.contains(t)) { return false; } } return true; }
ServicePort { public boolean hasTags(String... tag) { if (tags == null) { return false; } List<String> isTaggedWith = splitOnSpace.splitToList(tags); for (String t : tag) { if (!isTaggedWith.contains(t)) { return false; } } return true; } }
ServicePort { public boolean hasTags(String... tag) { if (tags == null) { return false; } List<String> isTaggedWith = splitOnSpace.splitToList(tags); for (String t : tag) { if (!isTaggedWith.contains(t)) { return false; } } return true; }  }
ServicePort { public boolean hasTags(String... tag) { if (tags == null) { return false; } List<String> isTaggedWith = splitOnSpace.splitToList(tags); for (String t : tag) { if (!isTaggedWith.contains(t)) { return false; } } return true; }  boolean hasTags(String... tag); }
ServicePort { public boolean hasTags(String... tag) { if (tags == null) { return false; } List<String> isTaggedWith = splitOnSpace.splitToList(tags); for (String t : tag) { if (!isTaggedWith.contains(t)) { return false; } } return true; }  boolean hasTags(String... tag); public int number; public String tags; }