All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.davidmoten.oas3.internal.model.ModelTransformer Maven / Gradle / Ivy

The newest version!
package com.github.davidmoten.oas3.internal.model;

import java.util.function.Function;

public interface ModelTransformer extends Function {

    T createHasPuml(String puml);

    static  ModelTransformer identity() {
        return new ModelTransformer() {

            @Override
            public Model apply(Model t) {
                return t;
            }

            @SuppressWarnings("unchecked")
            @Override
            public T createHasPuml(String puml) {
                return (T) new Puml(puml);
            }
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy