All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
Provider

  • Field Summary

    Fields

    A property list that contains default values for any keys not found in this property list.

  • Constructor Summary

    Constructors

    Creates an empty property list with no default values.

    Properties(int initialCapacity)

    Creates an empty property list with no default values, and with an initial size accommodating the specified number of elements without the need to dynamically resize.

    Creates an empty property list with the specified defaults.

  • Method Summary

    Searches for the property with the specified key in this property list.

    Searches for the property with the specified key in this property list.

    void

    Prints this property list out to the specified output stream.

    void

    Prints this property list out to the specified output stream.

    void

    Reads a property list (key and element pairs) from the input byte stream.

    void

    Reads a property list (key and element pairs) from the input character stream in a simple line-oriented format.

    void

    Loads all of the properties represented by the XML document on the specified input stream into this properties table.

    Returns an enumeration of all the keys in this property list, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.

    void

    Calls the Hashtable method put.

    void

    Writes this property list (key and element pairs) in this Properties table to the output stream in a format suitable for loading into a Properties table using the load(InputStream) method.

    void

    Writes this property list (key and element pairs) in this Properties table to the output character stream in a format suitable for using the load(Reader) method.

    void

    Emits an XML document representing all of the properties contained in this table.

    void

    Emits an XML document representing all of the properties contained in this table, using the specified encoding.

    void

    Emits an XML document representing all of the properties contained in this table, using the specified encoding.

    Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.

    Methods declared in class Hashtable

    clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, merge, put, putAll, rehash, remove, size, toString, values

    void

    Clears this hashtable so that it contains no keys.

    Creates a shallow copy of this hashtable.

    Attempts to compute a mapping for the specified key and its current mapped value, or null if there is no current mapping (optional operation).

    If the specified key is not already associated with a value (or is mapped to null), attempts to compute its value using the given mapping function and enters it into this map unless null (optional operation).

    If the value for the specified key is present and non-null, attempts to compute a new mapping given the key and its current mapped value (optional operation).

    boolean

    Tests if some key maps into the specified value in this hashtable.

    boolean

    Tests if the specified object is a key in this hashtable.

    boolean

    Returns true if this hashtable maps one or more keys to this value.

    Returns an enumeration of the values in this hashtable.

    Returns a Set view of the mappings contained in this map.

    boolean

    Compares the specified Object with this Map for equality, as per the definition in the Map interface.

    Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

    int

    Returns the hash code value for this Map as per the definition in the Map interface.

    boolean

    Tests if this hashtable maps no keys to values.

    Returns an enumeration of the keys in this hashtable.

    Returns a Set view of the keys contained in this map.

    If the specified key is not already associated with a value or is associated with null, associates it with the given non-null value (optional operation).

    Maps the specified key to the specified value in this hashtable.

    void

    Copies all of the mappings from the specified map to this hashtable.

    protected void

    Increases the capacity of and internally reorganizes this hashtable, in order to accommodate and access its entries more efficiently.

    Removes the key (and its corresponding value) from this hashtable.

    int

    Returns the number of keys in this hashtable.

    Returns a string representation of this Hashtable object in the form of a set of entries, enclosed in braces and separated by the ASCII characters "" (comma and space).

    Returns a Collection view of the values contained in this map.

    Methods declared in class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    Methods declared in interface Map

    forEach, getOrDefault, putIfAbsent, remove, replace, replace, replaceAll

    default void

    Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.

    Returns the value to which the specified key is mapped, or defaultValue if this map contains no mapping for the key.

    If the specified key is not already associated with a value (or is mapped to null) associates it with the given value and returns null, else returns the current value (optional operation).

    default boolean

    Removes the entry for the specified key only if it is currently mapped to the specified value (optional operation).

    Replaces the entry for the specified key only if it is currently mapped to some value (optional operation).

    default boolean

    Replaces the entry for the specified key only if currently mapped to the specified value (optional operation).

    default void

    Replaces each entry's value with the result of invoking the given function on that entry until all entries have been processed or the function throws an exception (optional operation).

  • Field Details

    • defaults

  • Constructor Details

    • Properties

    • Properties

    • Properties

  • Method Details

    • setProperty

    • load

    • load

    • save

    • store

    • store

    • loadFromXML

    • storeToXML

    • storeToXML

    • storeToXML

    • getProperty

    • getProperty

    • propertyNames

    • stringPropertyNames

    • list

    • list