java.lang.System.checkPropertyName()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(241)

本文整理了Java中java.lang.System.checkPropertyName()方法的一些代码示例,展示了System.checkPropertyName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。System.checkPropertyName()方法的具体详情如下:
包路径:java.lang.System
类名称:System
方法名:checkPropertyName

System.checkPropertyName介绍

暂无

代码示例

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: robovm/robovm

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

代码示例来源:origin: com.gluonhq/robovm-rt

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: MobiVM/robovm

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Returns the value of a particular system property. The {@code
  3. * defaultValue} will be returned if no such property has been found.
  4. */
  5. public static String getProperty(String name, String defaultValue) {
  6. checkPropertyName(name);
  7. return getProperties().getProperty(name, defaultValue);
  8. }

代码示例来源:origin: FlexoVM/flexovm

  1. /**
  2. * Sets the value of a particular system property.
  3. *
  4. * @return the old value of the property or {@code null} if the property
  5. * didn't exist.
  6. */
  7. public static String setProperty(String name, String value) {
  8. checkPropertyName(name);
  9. return (String) getProperties().setProperty(name, value);
  10. }

代码示例来源:origin: ibinti/bugvm

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

代码示例来源:origin: com.bugvm/bugvm-rt

  1. /**
  2. * Removes a specific system property.
  3. *
  4. * @return the property value or {@code null} if the property didn't exist.
  5. * @throws NullPointerException
  6. * if the argument is {@code null}.
  7. * @throws IllegalArgumentException
  8. * if the argument is empty.
  9. */
  10. public static String clearProperty(String name) {
  11. checkPropertyName(name);
  12. return (String) getProperties().remove(name);
  13. }

相关文章