Class Key
java.lang.Object
br.net.dd.netherwingcore.common.configuration.fields.Field
br.net.dd.netherwingcore.common.configuration.fields.Key
The
Key class represents a specific type of Field, which is used to handle configuration fields.
This class is responsible for encapsulating values where the first value is considered the key.
It extends the functionality of the Field class by providing direct access to the first value
supplied during instantiation through the getValue() method.
Usage
Key key = new Key("myKey", "otherValue");
String value = key.getValue(); // Returns "myKey"
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
Constructs a newKeyinstance with the provided values.- Parameters:
values- The values associated with thisKey. The first value is treated as the key.
-
-
Method Details
-
getValue
-