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

public class TimeZoneResolverInput<T> extends Object
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.
Since:
1.0
  • Field Details

  • Constructor Details

    • TimeZoneResolverInput

      public TimeZoneResolverInput()
  • Method Details

    • getValue

      public T getValue()
      Returns the value contained in this input container.
      Returns:
      the contained value
    • setValue

      public void setValue(T value)
      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 a TimeZoneResolverInput with 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 from
      secondItem - the fallback object to extract the field value from
      fieldName - the name of the field to extract
      Returns:
      a new TimeZoneResolverInput containing the extracted value