本文整理了Java中java.lang.System.checkPropertyName()
方法的一些代码示例,展示了System.checkPropertyName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.checkPropertyName()
方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:checkPropertyName
暂无
代码示例来源:origin: robovm/robovm
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: robovm/robovm
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: robovm/robovm
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
代码示例来源:origin: MobiVM/robovm
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: MobiVM/robovm
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: ibinti/bugvm
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: ibinti/bugvm
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: MobiVM/robovm
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Returns the value of a particular system property. The {@code
* defaultValue} will be returned if no such property has been found.
*/
public static String getProperty(String name, String defaultValue) {
checkPropertyName(name);
return getProperties().getProperty(name, defaultValue);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Sets the value of a particular system property.
*
* @return the old value of the property or {@code null} if the property
* didn't exist.
*/
public static String setProperty(String name, String value) {
checkPropertyName(name);
return (String) getProperties().setProperty(name, value);
}
代码示例来源:origin: ibinti/bugvm
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Removes a specific system property.
*
* @return the property value or {@code null} if the property didn't exist.
* @throws NullPointerException
* if the argument is {@code null}.
* @throws IllegalArgumentException
* if the argument is empty.
*/
public static String clearProperty(String name) {
checkPropertyName(name);
return (String) getProperties().remove(name);
}
内容来源于网络,如有侵权,请联系作者删除!