Package | Description |
---|---|
java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages.
|
java.util |
Utilities
|
tijos.framework.util.json |
JSON-java suppport
|
Modifier and Type | Method and Description |
---|---|
Map<AttributedCharacterIterator.Attribute,Object> |
AttributedCharacterIterator.getAttributes()
Returns a map with the attributes defined on the current
character.
|
Modifier and Type | Method and Description |
---|---|
void |
AttributedString.addAttributes(Map<? extends AttributedCharacterIterator.Attribute,?> attributes,
int beginIndex,
int endIndex)
Adds a set of attributes to a subrange of the string.
|
Constructor and Description |
---|
AttributedString(String text,
Map<? extends AttributedCharacterIterator.Attribute,?> attributes)
Constructs an AttributedString instance with the given text and attributes.
|
Modifier and Type | Interface and Description |
---|---|
interface |
NavigableMap<K,V>
A
SortedMap extended with navigation methods returning the
closest matches for given search targets. |
interface |
SortedMap<K,V>
A map which guarantees its key's iteration order.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMap<K,V>
An abstract implementation of Map to make it easier to create your own
implementations.
|
class |
HashMap<K,V>
This class provides a hashtable-backed implementation of the
Map interface.
|
class |
Hashtable<K,V>
A class which implements a hashtable data structure.
|
class |
IdentityHashMap<K,V>
This class provides a hashtable-backed implementation of the
Map interface, but uses object identity to do its hashing.
|
class |
LinkedHashMap<K,V>
This class provides a hashtable-backed implementation of the
Map interface, with predictable traversal order.
|
class |
Properties
A set of persistent properties, which can be saved or loaded from a stream.
|
class |
TreeMap<K,V>
This class provides a red-black tree implementation of the SortedMap
interface.
|
Modifier and Type | Field and Description |
---|---|
static Map |
Collections.EMPTY_MAP
An immutable, serializable, empty Map.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,V> |
Collections.checkedMap(Map<K,V> m,
Class<K> keyType,
Class<V> valueType)
Returns a dynamically typesafe view of the given map,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
static <K,V> Map<K,V> |
Collections.emptyMap()
Returns an immutable, serializable parameterized empty map.
|
static <K,V> Map<K,V> |
Collections.singletonMap(K key,
V value)
Obtain an immutable Map consisting of a single key-value pair.
|
static <K,V> Map<K,V> |
Collections.synchronizedMap(Map<K,V> m)
Returns a synchronized (thread-safe) map wrapper backed by the given
map.
|
static <K,V> Map<K,V> |
Collections.unmodifiableMap(Map<? extends K,? extends V> m)
Returns an unmodifiable view of the given map.
|
Modifier and Type | Method and Description |
---|---|
static <K,V> Map<K,V> |
Collections.checkedMap(Map<K,V> m,
Class<K> keyType,
Class<V> valueType)
Returns a dynamically typesafe view of the given map,
where any modification is first checked to ensure that the type
of the new data is appropriate.
|
static <E> Set<E> |
Collections.newSetFromMap(Map<E,Boolean> map)
Returns a set backed by the supplied map.
|
void |
TreeMap.putAll(Map<? extends K,? extends V> m)
Copies all elements of the given map into this TreeMap.
|
void |
Map.putAll(Map<? extends K,? extends V> m)
Copies all entries of the given map to this one (optional operation).
|
void |
IdentityHashMap.putAll(Map<? extends K,? extends V> m)
Copies all of the mappings from the specified map to this.
|
void |
Hashtable.putAll(Map<? extends K,? extends V> m)
Copies all elements of the given map into this hashtable.
|
void |
HashMap.putAll(Map<? extends K,? extends V> m)
Copies all elements of the given map into this hashtable.
|
void |
AbstractMap.putAll(Map<? extends K,? extends V> m)
Copies all entries of the given map to this one (optional operation).
|
static <K,V> Map<K,V> |
Collections.synchronizedMap(Map<K,V> m)
Returns a synchronized (thread-safe) map wrapper backed by the given
map.
|
static <K,V> Map<K,V> |
Collections.unmodifiableMap(Map<? extends K,? extends V> m)
Returns an unmodifiable view of the given map.
|
Constructor and Description |
---|
HashMap(Map<? extends K,? extends V> m)
Construct a new HashMap from the given Map, with initial capacity
the greater of the size of
m or the default of 11. |
Hashtable(Map<? extends K,? extends V> m)
Construct a new Hashtable from the given Map, with initial capacity
the greater of the size of
m or the default of 11. |
IdentityHashMap(Map<? extends K,? extends V> m)
Create a new IdentityHashMap whose contents are taken from the
given Map.
|
LinkedHashMap(Map<? extends K,? extends V> m)
Construct a new insertion-ordered LinkedHashMap from the given Map,
with initial capacity the greater of the size of
m or
the default of 11. |
TreeMap(Map<? extends K,? extends V> map)
Instantiate a new TreeMap, initializing it with all of the elements in
the provided Map.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
JSONObject.toMap()
Returns a java.util.Map containing all of the entries in this object.
|
Modifier and Type | Method and Description |
---|---|
JSONArray |
JSONArray.put(int index,
Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject that
is produced from a Map.
|
JSONArray |
JSONArray.put(Map<?,?> value)
Put a value in the JSONArray, where the value will be a JSONObject which
is produced from a Map.
|
JSONObject |
JSONObject.put(String key,
Map<?,?> value)
Put a key/value pair in the JSONObject, where the value will be a
JSONObject which is produced from a Map.
|
Constructor and Description |
---|
JSONObject(Map<?,?> map)
Construct a JSONObject from a Map.
|