public interface Attributes
This interface extends a map to provide convenient method for dealing with attribute values in a type safe manner when the interface client knows the type of an attribute and wants to deal with it accordingly.
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getBoolean(String name) |
Date |
getDate(String name) |
Double |
getDouble(String name) |
Integer |
getInteger(String name) |
Set<String> |
getKeys() |
Object |
getObject(String name) |
String |
getString(String name) |
ValueType<?> |
getType(String name) |
<T> T |
getValue(Key<T> key) |
<T> T |
getValue(Key<T> key,
T defaultValue) |
void |
setBoolean(String name,
Boolean value) |
void |
setDate(String name,
Date value) |
void |
setDouble(String name,
Double value) |
void |
setInteger(String name,
Integer value) |
<T> void |
setObject(String name,
T value) |
void |
setString(String name,
String value) |
<T> void |
setValue(Key<T> key,
T value) |
Copyright © 2025 JBoss by Red Hat. All Rights Reserved.