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

Method queryByString

src/main/java/core/packetproxy/model/Servers.java:65–75  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

63 }
64
65 public Server queryByString(String str) throws Exception {
66 List<Server> all = this.queryAll();
67 for (Server server : all) {
68
69 if (server.toString().equals(str)) {
70
71 return server;
72 }
73 }
74 return null;
75 }
76
77 public Server queryByHostNameAndPort(String hostname, int port) throws Exception {
78 String cache_key = hostname + String.valueOf(port);

Callers 4

actionPerformedMethod · 0.45
actionPerformedMethod · 0.45
actionPerformedMethod · 0.45

Calls 3

queryAllMethod · 0.95
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected