Interface TemporalConverter<T,​R>

  • Type Parameters:
    T - the source type
    R - the result type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface TemporalConverter<T,​R>
    Convert one temporal type to another temporal type
    Author:
    Stewart Bissett
    • Method Detail

      • apply

        R apply​(T source,
                Optional<ZoneId> zone)
        Convert one temporal type to another temporal type
        Parameters:
        source - the source to convert
        zone - TODO
        Returns:
        the source value as the target value