Class TimeZoneResolverInput<T>
java.lang.Object
overit.geocallapp.utilities.core.timezone.event.TimeZoneResolverInput<T>
- Type Parameters:
T- the type of value contained in this input
Input container for timezone resolution operations with flexible field value extraction.
This class provides a generic container for values used in timezone resolution processes. It includes utility methods to extract field values from objects using reflection, supporting both getter methods and direct field access as fallback mechanisms.
This class provides a generic container for values used in timezone resolution processes. It includes utility methods to extract field values from objects using reflection, supporting both getter methods and direct field access as fallback mechanisms.
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value contained in this input container.static <T> TimeZoneResolverInput<T> Factory method to create aTimeZoneResolverInputwith value extraction from objects.voidSets the value for this input container.
-
Field Details
-
LOG
-
-
Constructor Details
-
TimeZoneResolverInput
public TimeZoneResolverInput()
-
-
Method Details
-
getValue
Returns the value contained in this input container.- Returns:
- the contained value
-
setValue
Sets the value for this input container.- Parameters:
value- the value to set
-
make
public static <T> TimeZoneResolverInput<T> make(Object firstItem, Object secondItem, String fieldName) Factory method to create aTimeZoneResolverInputwith value extraction from objects.- Type Parameters:
T- the type of value to extract and contain- Parameters:
firstItem- the primary object to extract the field value fromsecondItem- the fallback object to extract the field value fromfieldName- the name of the field to extract- Returns:
- a new
TimeZoneResolverInputcontaining the extracted value
-