Code example for Properties

Methods: keySet, size

0
  } 
 
  public String[] getDefinedOptions()
  { 
    //noinspection SuspiciousToArrayCall 
    return this.properties.keySet().toArray(new String[this.properties.size()]);
  } 
   
  public void setOption(final String key, final String value)
  { 
    if (key == null)
    { 
      throw new NullPointerException();
    } 
    if (value == null)
    { 
      this.properties.remove(key);
    } 
    else 
    { 
      this.properties.setProperty(key, value);