public interface PropertySet extends java.io.Serializable, java.lang.Iterable<PropertyValue>, MutablePropertyValueSource, Countable, Extendable<PropertySet>
| Modifier and Type | Field and Description |
|---|---|
static ImmutablePropertySet |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static BasicPropertySet.Builder |
builder() |
default PropertySet |
extend(PropertySet parent)
If called on a child, gets the extension with the given parent.
|
default PropertySet |
getExtension()
This returns an object that represents the value only for the most "local" level.
|
boolean |
isExtended(Property<?> prop)
Returns whether this property set contains a value for the prop, and the prop was actually inherited.
|
boolean |
isInherited(Property<?> prop)
Indicates whether the property was inherited from a parent type.
|
default PropertySet |
newDefaultInstance() |
default PropertySet |
newExtension()
Called on a base object, gets a new extension with a default config object for the child.
|
merge, remove, set, setcontains, get, getOrDefault, getOrElse, getProperties, getValuesstatic final ImmutablePropertySet EMPTY
default PropertySet newExtension()
ExtendablenewExtension in interface Extendable<PropertySet>default PropertySet extend(PropertySet parent)
Extendableextend in interface Extendable<PropertySet>default PropertySet newDefaultInstance()
default PropertySet getExtension()
ExtendablegetExtension in interface Extendable<PropertySet>static BasicPropertySet.Builder builder()
boolean isExtended(Property<?> prop)
boolean isInherited(Property<?> prop)