@Test public void testCompareTo() { System.out.println("compareTo"); Parameter other = new Parameter("key", "value"); Parameter instance = new Parameter("key", "value"); int expResult = 0; int result = instance.compareTo(other); assertEquals(expResult, result); }
@Override public int compareTo(Parameter other) { return compareKey.compareTo(other.compareKey); }
Parameter implements Comparable<Parameter>, Map.Entry<String, String> { @Override public int compareTo(Parameter other) { return compareKey.compareTo(other.compareKey); } }
Parameter implements Comparable<Parameter>, Map.Entry<String, String> { @Override public int compareTo(Parameter other) { return compareKey.compareTo(other.compareKey); } Parameter(String key, String value); }
Parameter implements Comparable<Parameter>, Map.Entry<String, String> { @Override public int compareTo(Parameter other) { return compareKey.compareTo(other.compareKey); } Parameter(String key, String value); @Override String getKey(); @Override String getValue(); @Override String setValue(String value); @Override String toString(); @Override int compareTo(Parameter other); static String percentEncode(String value); }
Parameter implements Comparable<Parameter>, Map.Entry<String, String> { @Override public int compareTo(Parameter other) { return compareKey.compareTo(other.compareKey); } Parameter(String key, String value); @Override String getKey(); @Override String getValue(); @Override String setValue(String value); @Override String toString(); @Override int compareTo(Parameter other); static String percentEncode(String value);  }