Interface Caster<F,​T>

  • Type Parameters:
    F -
    T -
    All Known Implementing Classes:
    DoubleToComplexCaster

    public interface Caster<F,​T>
    Interface for a caster that transforms objects from type F to T.
    • Method Detail

      • cast

        T cast​(F from)
        Parameters:
        from - object to convert
        Returns:
        Converted object
      • from

        Class<F> from()
        Returns:
        Class to cast from
      • to

        Class<T> to()
        Returns:
        Class to cast to