public class IndexSortedProperties extends SortedProperties
IndexSortedProperties extends SortedProperties and holds an intern list with
the keys for get values over an index.| Constructor and Description |
|---|
IndexSortedProperties()
Instantiates a new
IndexSortedProperties. |
IndexSortedProperties(java.util.Properties defaults)
Instantiates a new
IndexSortedProperties. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
java.lang.Object |
get(int index)
Gets the entry from the given index.
|
java.lang.String |
getProperty(int index)
Gets the property over the index.
|
int |
indexOf(java.lang.Object object)
Gets the index of the given object.
|
static IndexSortedProperties |
of()
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(java.util.Properties defaults)
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(java.util.Properties defaults,
java.util.Comparator<java.lang.Object> comparator)
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(java.util.Properties defaults,
java.util.Comparator<java.lang.Object> comparator,
boolean nullIsGreaterThan)
Factory method to create a new
IndexSortedProperties object. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t) |
java.lang.Object |
remove(int index)
Removes the entry from the given index.
|
java.lang.Object |
remove(java.lang.Object key) |
boolean |
remove(java.lang.Object key,
java.lang.Object value) |
getComparator, keys, keySet, newComparator, propertyNamesgetProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamespublic IndexSortedProperties()
IndexSortedProperties.public IndexSortedProperties(java.util.Properties defaults)
IndexSortedProperties.defaults - the defaultspublic static IndexSortedProperties of()
IndexSortedProperties object.IndexSortedProperties objectpublic static IndexSortedProperties of(java.util.Properties defaults)
IndexSortedProperties object.defaults - the defaultsIndexSortedProperties objectpublic static IndexSortedProperties of(java.util.Properties defaults, java.util.Comparator<java.lang.Object> comparator)
IndexSortedProperties object.defaults - the defaultscomparator - the comparatorIndexSortedProperties objectpublic static IndexSortedProperties of(java.util.Properties defaults, java.util.Comparator<java.lang.Object> comparator, boolean nullIsGreaterThan)
IndexSortedProperties object.defaults - the defaultscomparator - the comparatornullIsGreaterThan - the null is greater thanIndexSortedProperties objectpublic void clear()
clear in interface java.util.Map<java.lang.Object,java.lang.Object>clear in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.lang.Object get(int index)
index - the indexpublic java.lang.String getProperty(int index)
index - the indexpublic int indexOf(java.lang.Object object)
object - the objectpublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Map<java.lang.Object,java.lang.Object>put in class java.util.Hashtable<java.lang.Object,java.lang.Object>public void putAll(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> t)
putAll in interface java.util.Map<java.lang.Object,java.lang.Object>putAll in class java.util.Hashtable<java.lang.Object,java.lang.Object>public java.lang.Object remove(int index)
index - the indexpublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Map<java.lang.Object,java.lang.Object>remove in class java.util.Hashtable<java.lang.Object,java.lang.Object>public boolean remove(java.lang.Object key,
java.lang.Object value)
remove in interface java.util.Map<java.lang.Object,java.lang.Object>remove in class java.util.Hashtable<java.lang.Object,java.lang.Object>