Create a JavaPropertiesObject instance. Java properties is a text file format that stores data into text files with information that is arranged as key/value pairs. For example: tag1=value1
String containing the contents of a .properties Java file. Note that string must be encoded with ISO-8859-1 and strictly follow the Java properties file format (Otherwise results won't be correct).
The java properties object with data accessible as key/value pairs.
Structure that contains the HashMapObject data Note that javascript objects do not guarantee key order, so we must also keep a sepparate array with the sorted list of keys
Javascript objects specification does not guarantee object keys order. So we must keep a sepparate array with the currently sorted hashmap keys to be sure that sorting is guaranteed
Stores the number of elements inside the HashMapObject
Sort mode that compares values as numbers (Avoid using it with non numeric values)
Sort mode that compares values as strings (alphabetically)
Defines that elements will be sorted upward
Defines that elements will be sorted downward
Get the value that is associated to a key from an existing key/value pair
The key we are looking for
The value that is associated to the provided key
Get the value that is located at a certain position at the ordered list of key/pair values
The position we are looking for
The value that is located at the specified position
Get a list with all the keys from the HashMapObject with the same order as they are stored.
List of strings containing all the HashMapObject sorted keys.
Get a list with all the values from the HashMapObject with the same order as they are stored.
List of elements containing all the HashMapObject sorted values
Check if the provided java properties is identical to this instance Only data is compared: Any comment that is found on both provided properties will be ignored.
java properties value to compare (a string or a JavaPropertiesObject instance)
If set to true, both properties elements must have the same keys with the same order. Otherwise differences in key sorting will be accepted
true if both java properties data is exactly the same, false if not
Tells if the provided value matches a key that's stored inside the HashMapObject
True if the provided value is a valid HashMap key, false in any other case
Get the number of key/value pairs that are currently stored on this HashMapObject instance
integer The number of items inside the collection
Remove and get the last element value from the HashMapObject sorted list
The value on the last element of the list
Delete a key/value pair from the HashMapObject, given it's key.
The key for the key/value pair we want to delete
The value from the key/value pair that's been deleted.
Change the name for an existing key
The name we want to change
The new name that will replace the previous one
True if rename was successful
Reverse the order of the HashMapObject elements
void
Define a key / value pair and add it to the collection. If the key already exists, value will be replaced.
A string that labels the provided value
A value to be stored with the provided key
The value after being stored to the collection
Remove and get the first element value from the HashMapObject sorted list
The value on the first element of the list
Sort the key/value pairs inside the HashMapObject by their key values.
Defines sort mode: HashMapObject.SORT_STRING or HashMapObject.SORT_NUMERIC
Defines the order for the sorted elements: HashMapObject.SORT_ORDER_ASCENDING (default) or HashMapObject.SORT_ORDER_DESCENDING
True if sort was successful false on failure
Exchange the positions for two key/value pairs on the HashMapObject sorted elements list
The first key to exchange
The second key to exchange
True if the two key/value pairs positions were correctly exchanged
Generate the textual representation for the java properties data stored on this object. The output of this method is ready to be stored on a physical .properties file.
A valid Java .properties string ready to be stored on a .properties file
Tells if the given value contains valid Java Properties data information or not
A value to check (a string or a JavaPropertiesObject instance)
true if the given value contains valid Java Properties data, false otherwise
Generated using TypeDoc
Object that stores java properties file format data