MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / getValue

Method getValue

src/main/java/core/packetproxy/http/QueryString.java:42–51  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

40 }
41
42 public Optional<String> getValue(String name) {
43 Optional<QueryParameter> param = getParam(name);
44 if (param.isPresent()) {
45
46 return Optional.of(param.get().getValue());
47 } else {
48
49 return Optional.ofNullable(null);
50 }
51 }
52
53 public Stream<QueryParameter> filter(Predicate<? super QueryParameter> predicate) {
54 return params.stream().filter(predicate);

Callers

nothing calls this directly

Calls 3

getParamMethod · 0.95
ofMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected