private static class SectionContent.KeyRenderer extends java.lang.Object implements SectionContent.Renderable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The key name.
|
private java.util.Map<java.lang.String,java.lang.String> |
lookup
The Map containing key=value pairs.
|
Modifier | Constructor and Description |
---|---|
private |
KeyRenderer(java.util.Map<java.lang.String,java.lang.String> lookup,
java.lang.String key)
Constructs an instance of the key entry line in INI file.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
render()
Gets the string representation of the key=value pair.
|
java.lang.String |
toString()
Gets the string representation of the instance internal string part.
|
private java.lang.String key
private java.util.Map<java.lang.String,java.lang.String> lookup
private KeyRenderer(java.util.Map<java.lang.String,java.lang.String> lookup, java.lang.String key)
lookup
- The Map containing the key-value pairs to look for.key
- The key part string of the given key=value pair.public java.lang.String render()
render
in interface SectionContent.Renderable
public java.lang.String toString()
toString
in interface SectionContent.Renderable
toString
in class java.lang.Object