Interface Transformable<T extends Transformable<T>>

    • Method Detail

      • to

        default <O,​TC extends IElementTakerElementGetter<T,​O>> O to​(java.lang.Class<TC> transformatorClass)
        Type Parameters:
        O - is the type of the elements the instances of the given transformatorClass take.
        TC - is the type of the elements the instances of the given transformatorClass return.
        Parameters:
        transformatorClass -
        Returns:
        a new Object from the current Transformable with the help of an instance of the given transformatorClass.
        Throws:
        ArgumentIsNullException - if the given transformatorClass is null.
      • to

        default <O> O to​(IElementTakerElementGetter<T,​O> transformator)
        Type Parameters:
        O - is the type of the elements the given transformator returns.
        Parameters:
        transformator -
        Returns:
        a new Object from the current Transformable with the help of the given transformator.
        Throws:
        ArgumentIsNullException - if the given transformator is null.