@Test public void isValidParamKey() throws Exception { ParameterConfig config = new ParameterConfig(); config.setKey("11"); config.setValue("22"); config.setHide(false); Assert.assertEquals(config.getKey(), "11"); Assert.assertEquals(config.getValue(), "22"); Assert.assertEquals(config.isHide(), false); Assert.assertTrue(ParameterConfig.isValidParamKey("123")); Assert.assertTrue(ParameterConfig.isValidParamKey("aaa")); Assert.assertFalse(ParameterConfig.isValidParamKey(".1")); Assert.assertFalse(ParameterConfig.isValidParamKey("_1")); }
public static boolean isValidParamKey(String paramkey) { char c = paramkey.charAt(0); return c != RpcConstants.HIDE_KEY_PREFIX && c != RpcConstants.INTERNAL_KEY_PREFIX; }
ParameterConfig implements Serializable { public static boolean isValidParamKey(String paramkey) { char c = paramkey.charAt(0); return c != RpcConstants.HIDE_KEY_PREFIX && c != RpcConstants.INTERNAL_KEY_PREFIX; } }
ParameterConfig implements Serializable { public static boolean isValidParamKey(String paramkey) { char c = paramkey.charAt(0); return c != RpcConstants.HIDE_KEY_PREFIX && c != RpcConstants.INTERNAL_KEY_PREFIX; }  }
ParameterConfig implements Serializable { public static boolean isValidParamKey(String paramkey) { char c = paramkey.charAt(0); return c != RpcConstants.HIDE_KEY_PREFIX && c != RpcConstants.INTERNAL_KEY_PREFIX; }  String getKey(); void setKey(String key); String getValue(); void setValue(String value); boolean isHide(); void setHide(boolean hide); static boolean isValidParamKey(String paramkey); }
ParameterConfig implements Serializable { public static boolean isValidParamKey(String paramkey) { char c = paramkey.charAt(0); return c != RpcConstants.HIDE_KEY_PREFIX && c != RpcConstants.INTERNAL_KEY_PREFIX; }  String getKey(); void setKey(String key); String getValue(); void setValue(String value); boolean isHide(); void setHide(boolean hide); static boolean isValidParamKey(String paramkey);  }