org.kinsources.kiwa.accounts
Class Attributes
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,Attribute>
org.kinsources.kiwa.accounts.Attributes
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Attribute>, java.util.Map<java.lang.String,Attribute>
public class Attributes
- extends java.util.HashMap<java.lang.String,Attribute>
- implements java.lang.Iterable<Attribute>
- Author:
- christian.momon@devinsy.fr
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Methods inherited from class java.util.HashMap |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Attributes
public Attributes()
Attributes
public Attributes(Attributes source)
Attributes
public Attributes(int capacity)
add
public void add(Attribute attribute)
- Parameters:
attribute
-
addAll
public void addAll(Attributes source)
- Parameters:
source
-
clone
public Attributes clone()
- This method returns a deep copy of the current object.
- Overrides:
clone
in class java.util.HashMap<java.lang.String,Attribute>
- See Also:
HashMap.clone()
getValue
public java.lang.String getValue(java.lang.String label)
iterator
public java.util.Iterator<Attribute> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<Attribute>
labels
public java.util.Set<java.lang.String> labels()
- Returns:
put
public void put(Attribute attribute)
put
public Attribute put(java.lang.String label,
java.lang.String value)
- Parameters:
label
- value
-
rename
public void rename(Attribute attribute,
java.lang.String newLabel)
- Parameters:
attribute
- newLabel
-
toList
public java.util.List<Attribute> toList()
- Returns: