@Test public void testBrowserBestMatchFirst() { test(browserBestMatch.stream().map(v -> String.join("", v)).collect(Collectors.toList()), browserSingleMatch.entrySet().stream().map(e -> { switch (e.getKey()) { case "Safari": case "Opera": case "Opera Mini": case "Opera Mobi": return ImmutableMap.of(BROWSER, e.getKey(), VERSION, "6"); default: return e.getValue(); } }).collect(Collectors.toList())); }
public static ParseUserAgent of() { return INSTANCE; }
ParseUserAgent extends PTransform<PCollection<PubsubMessage>, PCollection<PubsubMessage>> { public static ParseUserAgent of() { return INSTANCE; } }
ParseUserAgent extends PTransform<PCollection<PubsubMessage>, PCollection<PubsubMessage>> { public static ParseUserAgent of() { return INSTANCE; } private  ParseUserAgent(); }
ParseUserAgent extends PTransform<PCollection<PubsubMessage>, PCollection<PubsubMessage>> { public static ParseUserAgent of() { return INSTANCE; } private  ParseUserAgent(); static ParseUserAgent of(); @Override PCollection<PubsubMessage> expand(PCollection<PubsubMessage> input); }
ParseUserAgent extends PTransform<PCollection<PubsubMessage>, PCollection<PubsubMessage>> { public static ParseUserAgent of() { return INSTANCE; } private  ParseUserAgent(); static ParseUserAgent of(); @Override PCollection<PubsubMessage> expand(PCollection<PubsubMessage> input);  }