1Pair<Integer, String> pair = new Pair<>(1, "One");
2Integer key = pair.getKey();
3String value = pair.getValue();
4
1String input = "one=1&two=2";
2Pattern p = Pattern.compile("^(?:\\w*=\\d*(?:&|$))+$");
3Matcher m = p.matcher(input);
4if (m.matches()) System.out.println("Matches!");