Class DefaultAttributed<T>
- java.lang.Object
-
- org.jungrapht.visualization.layout.algorithms.util.DefaultAttributed<T>
-
- All Implemented Interfaces:
Map<String,String>
,Attributed<T>
public class DefaultAttributed<T> extends Object implements Attributed<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultAttributed(T value)
-
Method Summary
-
-
-
Constructor Detail
-
DefaultAttributed
public DefaultAttributed(T value)
-
-
Method Detail
-
getValue
public T getValue()
- Specified by:
getValue
in interfaceAttributed<T>
-
getAttributeMap
public Map<String,String> getAttributeMap()
- Specified by:
getAttributeMap
in interfaceAttributed<T>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,String>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,String>
-
getOrDefault
public String getOrDefault(Object key, String defaultValue)
- Specified by:
getOrDefault
in interfaceMap<String,String>
-
forEach
public void forEach(BiConsumer<? super String,? super String> action)
-
replaceAll
public void replaceAll(BiFunction<? super String,? super String,? extends String> function)
- Specified by:
replaceAll
in interfaceMap<String,String>
-
putIfAbsent
public String putIfAbsent(String key, String value)
- Specified by:
putIfAbsent
in interfaceMap<String,String>
-
computeIfAbsent
public String computeIfAbsent(String key, Function<? super String,? extends String> mappingFunction)
- Specified by:
computeIfAbsent
in interfaceMap<String,String>
-
computeIfPresent
public String computeIfPresent(String key, BiFunction<? super String,? super String,? extends String> remappingFunction)
- Specified by:
computeIfPresent
in interfaceMap<String,String>
-
compute
public String compute(String key, BiFunction<? super String,? super String,? extends String> remappingFunction)
-
merge
public String merge(String key, String value, BiFunction<? super String,? super String,? extends String> remappingFunction)
-
set
public void set(String key, String value)
- Specified by:
set
in interfaceAttributed<T>
-
-