Class TypeMapping<S,T extends S>

java.lang.Object
org.pkl.config.java.mapper.TypeMapping<S,T>

public final class TypeMapping<S,T extends S> extends Object
Maps a type requested during conversion to the implementation type to be instantiated. The requested type is often an interface type. The implementation type is always a class type. A typical example is mapping List to ArrayList.
  • Field Details

    • requestedType

      public final Class<S> requestedType
    • implementationType

      public final Class<T extends S> implementationType
  • Method Details