Package net.minecraftforge.common.util
Class SortedProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- net.minecraftforge.common.util.SortedProperties
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
public class SortedProperties extends java.util.Properties
An Implementation of Properties that is sorted when iterating. Made because i got tired of seeing config files written in random orders. This is implemented very basically, and thus is not a speedy system. This is not recommended for used in high traffic areas, and is mainly intended for writing to disc.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description SortedProperties()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>>
entrySet()
java.util.Enumeration<java.lang.Object>
keys()
java.util.Set<java.lang.Object>
keySet()
static void
store(java.util.Properties props, java.io.OutputStream stream, java.lang.String comment)
-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
entrySet
in classjava.util.Properties
-
keySet
public java.util.Set<java.lang.Object> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.Object,java.lang.Object>
- Overrides:
keySet
in classjava.util.Properties
-
keys
public java.util.Enumeration<java.lang.Object> keys()
- Overrides:
keys
in classjava.util.Properties
-
store
public static void store(java.util.Properties props, java.io.OutputStream stream, java.lang.String comment) throws java.io.IOException
- Throws:
java.io.IOException
-
-