| Modifier and Type | Method and Description | 
|---|---|
| static DefaultValueTrait | create(Supplier<?> supplier)Creates a new  DefaultValueTraitwith a customSupplier. | 
| static DefaultValueTrait | idempotencyToken()Creates a precanned  DefaultValueTraitusing the idempotency token generation which
 creates a new UUID if a field is null. | 
| Object | resolveValue(Object val)If the value is null then the default value supplier is used to get a default
 value for the field. | 
public Object resolveValue(Object val)
val - Value to resolve.public static DefaultValueTrait create(Supplier<?> supplier)
DefaultValueTrait with a custom Supplier.supplier - Supplier of default value for the field.public static DefaultValueTrait idempotencyToken()
DefaultValueTrait using the idempotency token generation which
 creates a new UUID if a field is null. This is used when the 'idempotencyToken' trait in the service
 model is present.Copyright © 2022. All rights reserved.