- java.lang.Object
-
- org.github.gestalt.config.entity.ConfigNodeContainer
-
public final class ConfigNodeContainer extends java.lang.ObjectHolds a config node and the UUID related to the source.
-
-
Constructor Summary
Constructors Constructor Description ConfigNodeContainer(ConfigNode configNode, ConfigSource source)Constructor to hold a ConfigNode and a id.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ConfigNodegetConfigNode()Return the config node.ConfigSourcegetSource()unique ID for the config node related to the source.TagsgetTags()Get all tags associated with a node.inthashCode()booleanmatchesTags(Tags match)returns true if the tags for the Config Node match the input.
-
-
-
Constructor Detail
-
ConfigNodeContainer
public ConfigNodeContainer(ConfigNode configNode, ConfigSource source)
Constructor to hold a ConfigNode and a id.- Parameters:
configNode- node to holdsource- the source of the configs
-
-
Method Detail
-
getConfigNode
public ConfigNode getConfigNode()
Return the config node.- Returns:
- config node
-
getSource
public ConfigSource getSource()
unique ID for the config node related to the source.- Returns:
- unique ID for the config node related to the source
-
getTags
public Tags getTags()
Get all tags associated with a node.- Returns:
- Tags
-
matchesTags
public boolean matchesTags(Tags match)
returns true if the tags for the Config Node match the input.- Parameters:
match- tokens to match- Returns:
- true if the tags for the Config Node match the input
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-