| Constructor and Description |
|---|
Properties()
Creates an instance.
|
Properties(Properties parent)
Creates an instance that delegates to another for unknown properties.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Property... properties)
Adds one or more properties to this collection.
|
boolean |
contains(String name)
Returns
true if this collection contains a given property. |
void |
delete(String name)
Removes a given property.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty()
Returns
true if this collection has no properties. |
Iterator<Property> |
iterator() |
Property |
lookup(String name)
Returns a given property in this collection.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Properties(Properties parent)
parent - the parent instancepublic Properties()
public void add(Property... properties)
properties - the propertiespublic boolean contains(String name)
true if this collection contains a given property.name - the name of the propertytrue if this collection contains a property with the given namepublic void delete(String name)
name - the name of the propertyIllegalStateException - if a property with the given name does not exist in this collectionpublic Property lookup(String name)
name - the name of the propertyIllegalStateException - if a property with a given name does not exist in this collectionpublic boolean isEmpty()
true if this collection has no properties.true if this collection has no propertiesCopyright © 2019. All Rights Reserved.