public class HistorizedInputFactory extends Properties
Use: - call the create method - use instance(name) with the created item name to get the created historized-input - use getAsList() to obtain the entries - use addAndSave(value) to add a new entry.
defaults| Constructor and Description |
|---|
HistorizedInputFactory() |
| Modifier and Type | Method and Description |
|---|---|
static HistorizedInput<String> |
create(String name)
delegator using type string.
|
static <T> HistorizedInput<T> |
create(String name,
int maxCount,
Class<T> type)
create new historized input with max-count entries of given type.
|
static boolean |
delete(String name)
deletes the given input history
|
static boolean |
deleteAll()
deletes all histories from file system.
|
static boolean |
exists(String name)
checks, whether an
HistorizedInput was already created |
static HistorizedInput |
instance(String name)
instance
|
static void |
setPath(String path)
sets standard file path for historized inputs
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static void setPath(String path)
path - file pathpublic static final HistorizedInput instance(String name)
name - public static final boolean exists(String name)
HistorizedInput was already createdname - name of HistorizedInputHistorizedInput was already createdpublic static final HistorizedInput<String> create(String name)
create(String, int, Class)public static final <T> HistorizedInput<T> create(String name, int maxCount, Class<T> type)
T - entry type used in #getAsList()name - historized input name (unique id)maxCount - maximum amount of entries to storetype - wrapper to put the entries into (must have a string-constructor)public static final boolean delete(String name)
name - history namepublic static final boolean deleteAll()
Copyright © 2012–2018. All rights reserved.