T - the type of the additional properties.public class AdditionalProperties<T> extends Object
| Constructor and Description |
|---|
AdditionalProperties()
Default constructor.
|
AdditionalProperties(Class<?> classInstance)
Parameterized constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,T> |
getAdditionalProperties()
Gets the additional properties.
|
T |
getAdditionalProperty(String key)
Gets an additional property by key.
|
void |
setAdditionalProperty(String key,
T value)
Sets an additional property.
|
void |
setAdditionalProperty(String key,
T value,
boolean skipNullValue)
Sets an additional property with an option to skip null values.
|
String |
toString() |
public AdditionalProperties()
public AdditionalProperties(Class<?> classInstance)
classInstance - The instance of the class with additional properties.public Map<String,T> getAdditionalProperties()
public void setAdditionalProperty(String key, T value)
key - The key for the additional property.value - The value of the additional property.IllegalArgumentException - if there is a conflict between the key and
any model property.public void setAdditionalProperty(String key, T value, boolean skipNullValue)
key - The key for the additional property.value - The value of the additional property.skipNullValue - If true, null values will be skipped.IllegalArgumentException - if there is a conflict between the key and
any model property.Copyright © 2025. All rights reserved.