public class IndexSortedProperties extends SortedProperties
IndexSortedProperties extends SortedProperties and holds an intern list with
the keys for get values over an index.defaults| Constructor and Description |
|---|
IndexSortedProperties()
Instantiates a new
IndexSortedProperties. |
IndexSortedProperties(Properties defaults)
Instantiates a new
IndexSortedProperties. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Object |
get(int index)
Gets the entry from the given index.
|
String |
getProperty(int index)
Gets the property over the index.
|
int |
indexOf(Object object)
Gets the index of the given object.
|
static IndexSortedProperties |
of()
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(Properties defaults)
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(Properties defaults,
Comparator<Object> comparator)
Factory method to create a new
IndexSortedProperties object. |
static IndexSortedProperties |
of(Properties defaults,
Comparator<Object> comparator,
boolean nullIsGreaterThan)
Factory method to create a new
IndexSortedProperties object. |
Object |
put(Object key,
Object value) |
void |
putAll(Map<? extends Object,? extends Object> t) |
Object |
remove(int index)
Removes the entry from the given index.
|
Object |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
getComparator, keys, keySet, newComparator, propertyNamesgetProperty, getProperty, list, list, load, load, loadFromXML, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, rehash, replace, replace, replaceAll, size, toString, valuespublic IndexSortedProperties()
IndexSortedProperties.public IndexSortedProperties(Properties defaults)
IndexSortedProperties.defaults - the defaultspublic static IndexSortedProperties of()
IndexSortedProperties object.IndexSortedProperties objectpublic static IndexSortedProperties of(Properties defaults)
IndexSortedProperties object.defaults - the defaultsIndexSortedProperties objectpublic static IndexSortedProperties of(Properties defaults, Comparator<Object> comparator)
IndexSortedProperties object.defaults - the defaultscomparator - the comparatorIndexSortedProperties objectpublic static IndexSortedProperties of(Properties defaults, Comparator<Object> comparator, boolean nullIsGreaterThan)
IndexSortedProperties object.defaults - the defaultscomparator - the comparatornullIsGreaterThan - the null is greater thanIndexSortedProperties objectpublic void clear()
public Object get(int index)
index - the indexpublic String getProperty(int index)
index - the indexpublic int indexOf(Object object)
object - the objectpublic Object remove(int index)
index - the indexCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.