Class PropertyConfigCollection
- java.lang.Object
-
- com.inductiveautomation.perspective.common.config.PropertyConfigCollection
-
public class PropertyConfigCollection extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PropertyConfigCollection.RuntimeGsonAdapter
static class
PropertyConfigCollection.StandardGsonAdapter
-
Field Summary
Fields Modifier and Type Field Description java.util.Map<PropertyKey,PropertyConfig>
configs
-
Constructor Summary
Constructors Constructor Description PropertyConfigCollection()
PropertyConfigCollection(java.util.Map<PropertyKey,PropertyConfig> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBinding(java.lang.String property, BindingConfig binding)
boolean
equals(java.lang.Object o)
java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>>
filterByConfig(java.util.function.Predicate<PropertyConfig> predicate)
java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>>
filterByKey(java.util.function.Predicate<PropertyKey> predicate)
java.util.Optional<PropertyConfig>
findConfig(PropertyKey key)
java.util.Collection<PropertyKey>
getProperties()
A collection of all properties that have configurations set on themint
hashCode()
boolean
isSystem(PropertyKey key)
Returns true if this property is marked as a system property, either directly or because a parent or child is a system property.void
removeConfig(PropertyKey key)
void
setPersistent(java.lang.String property, boolean persistent)
void
setPrivate(java.lang.String property)
Marks a property as private.void
setSystem(java.lang.String property)
Marks a property as system.java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>>
stream()
-
-
-
Field Detail
-
configs
public final java.util.Map<PropertyKey,PropertyConfig> configs
-
-
Constructor Detail
-
PropertyConfigCollection
public PropertyConfigCollection()
-
PropertyConfigCollection
public PropertyConfigCollection(java.util.Map<PropertyKey,PropertyConfig> map)
-
-
Method Detail
-
getProperties
public java.util.Collection<PropertyKey> getProperties()
A collection of all properties that have configurations set on them
-
removeConfig
public void removeConfig(PropertyKey key)
-
findConfig
public java.util.Optional<PropertyConfig> findConfig(PropertyKey key)
-
stream
public java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>> stream()
-
filterByKey
public java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>> filterByKey(java.util.function.Predicate<PropertyKey> predicate)
-
filterByConfig
public java.util.stream.Stream<java.util.Map.Entry<PropertyKey,PropertyConfig>> filterByConfig(java.util.function.Predicate<PropertyConfig> predicate)
-
addBinding
public void addBinding(java.lang.String property, BindingConfig binding)
-
setPersistent
public void setPersistent(java.lang.String property, boolean persistent)
-
isSystem
public boolean isSystem(PropertyKey key)
Returns true if this property is marked as a system property, either directly or because a parent or child is a system property.
-
setSystem
public void setSystem(java.lang.String property)
Marks a property as system. Also sets the persistent flag to false
-
setPrivate
public void setPrivate(java.lang.String property)
Marks a property as private. Also sets the persistent flag to false
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-