public class DateToLongConverter extends Object implements Converter<Date,Long>
| Constructor and Description |
|---|
DateToLongConverter() |
| Modifier and Type | Method and Description |
|---|---|
Result<Long> |
convertToModel(Date value,
ValueContext context)
Converts the given value from presentation type to model type.
|
Date |
convertToPresentation(Long value,
ValueContext context)
Converts the given value from model type to presentation type.
|
public Result<Long> convertToModel(Date value, ValueContext context)
ConverterA converter can optionally use locale to do the conversion.
convertToModel in interface Converter<Date,Long>value - The value to convert. Can be nullcontext - The value context for the conversion.public Date convertToPresentation(Long value, ValueContext context)
ConverterA converter can optionally use locale to do the conversion.
convertToPresentation in interface Converter<Date,Long>value - The value to convert. Can be nullcontext - The value context for the conversion.Copyright © 2025. All rights reserved.