public class PowerMap<K,V> extends java.util.LinkedHashMap<K,V> implements Dumpable, java.lang.Cloneable
Dumpable
and thus is able to dump it's content.Constructor and Description |
---|
PowerMap() |
PowerMap(int initialCapacity) |
PowerMap(int initialCapacity,
float loadFactor) |
PowerMap(int initialCapacity,
float loadFactor,
boolean accessOrder) |
PowerMap(java.util.Map<? extends K,? extends V> map) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
createDumpHeader() |
boolean |
getAsBoolean(java.lang.String key) |
boolean |
getAsBoolean(java.lang.String key,
boolean defaultValue) |
java.util.Date |
getAsDate(java.lang.String key) |
java.util.Date |
getAsDate(java.lang.String key,
java.util.Date defaultValue) |
double |
getAsDouble(java.lang.String key) |
double |
getAsDouble(java.lang.String key,
double defaultValue) |
Duration |
getAsDuration(java.lang.String key) |
Duration |
getAsDuration(java.lang.String key,
Duration defaultValue) |
float |
getAsFloat(java.lang.String key) |
float |
getAsFloat(java.lang.String key,
float defaultValue) |
int |
getAsInt(java.lang.String key) |
int |
getAsInt(java.lang.String key,
int defaultValue) |
long |
getAsLong(java.lang.String key) |
long |
getAsLong(java.lang.String key,
long defaultValue) |
short |
getAsShort(java.lang.String key) |
short |
getAsShort(java.lang.String key,
short defaultValue) |
java.lang.String |
getAsString(java.lang.String key) |
java.lang.String |
getAsString(java.lang.String key,
java.lang.String defaultValue) |
java.sql.Time |
getAsTime(java.lang.String key) |
java.sql.Time |
getAsTime(java.lang.String key,
java.sql.Time defaultValue) |
java.sql.Timestamp |
getAsTimestamp(java.lang.String key) |
java.sql.Timestamp |
getAsTimestamp(java.lang.String key,
java.sql.Timestamp defaultValue) |
int |
getMaxKeyLength() |
void |
reverse()
Reverses the order of the entries in this map
|
java.lang.String |
toDumpString()
Returns a multi-line String that shows the values (name=value) of all important
state variables of this object.
|
DumpString |
toDumpString(DumpString s)
This method allows subclasses to add values to the existing DumpString of the superclass.
|
java.lang.String |
toString()
Returns a single line String that shows the values of the most important
state variables of this object.
|
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
public PowerMap()
public PowerMap(int initialCapacity, float loadFactor, boolean accessOrder)
public PowerMap(int initialCapacity, float loadFactor)
public PowerMap(int initialCapacity)
public final int getMaxKeyLength()
public boolean getAsBoolean(java.lang.String key)
public boolean getAsBoolean(java.lang.String key, boolean defaultValue)
public final java.lang.String getAsString(java.lang.String key)
public final java.lang.String getAsString(java.lang.String key, java.lang.String defaultValue)
public final short getAsShort(java.lang.String key)
public final short getAsShort(java.lang.String key, short defaultValue)
public final int getAsInt(java.lang.String key)
public final int getAsInt(java.lang.String key, int defaultValue)
public final long getAsLong(java.lang.String key)
public final long getAsLong(java.lang.String key, long defaultValue)
public final float getAsFloat(java.lang.String key)
public final float getAsFloat(java.lang.String key, float defaultValue)
public final double getAsDouble(java.lang.String key)
public final double getAsDouble(java.lang.String key, double defaultValue)
public java.sql.Timestamp getAsTimestamp(java.lang.String key) throws java.text.ParseException
java.text.ParseException
public java.sql.Timestamp getAsTimestamp(java.lang.String key, java.sql.Timestamp defaultValue) throws java.text.ParseException
java.text.ParseException
public java.util.Date getAsDate(java.lang.String key) throws java.text.ParseException
java.text.ParseException
public java.util.Date getAsDate(java.lang.String key, java.util.Date defaultValue) throws java.text.ParseException
java.text.ParseException
public Duration getAsDuration(java.lang.String key)
public java.sql.Time getAsTime(java.lang.String key) throws java.text.ParseException
java.text.ParseException
public java.sql.Time getAsTime(java.lang.String key, java.sql.Time defaultValue) throws java.text.ParseException
java.text.ParseException
public void reverse()
protected java.lang.String createDumpHeader()
public final java.lang.String toString()
Dumpable
public ToString toString(ToString s)
Dumpable
public final java.lang.String toDumpString()
Dumpable
toDumpString
in interface Dumpable
public DumpString toDumpString(DumpString s)
Dumpable
toDumpString
in interface Dumpable
Copyright © 2014 EsprIT-Systems. All Rights Reserved.