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

io.quarkus.funqy.lambda.model.FunqyMethod Maven / Gradle / Ivy

The newest version!
package io.quarkus.funqy.lambda.model;

import java.util.Optional;

import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.ObjectWriter;

public class FunqyMethod {

    private ObjectReader reader;
    private ObjectWriter writer;
    private JavaType inputType;
    private JavaType outputType;

    public FunqyMethod setReader(final ObjectReader reader) {
        this.reader = reader;
        return this;
    }

    public FunqyMethod setWriter(final ObjectWriter writer) {
        this.writer = writer;
        return this;
    }

    public FunqyMethod setInputType(final JavaType inputType) {
        this.inputType = inputType;
        return this;
    }

    public FunqyMethod setOutputType(final JavaType outputType) {
        this.outputType = outputType;
        return this;
    }

    public Optional getReader() {
        return Optional.ofNullable(reader);
    }

    public Optional getWriter() {
        return Optional.ofNullable(writer);
    }

    public Optional getInputType() {
        return Optional.ofNullable(inputType);
    }

    public Optional getOutputType() {
        return Optional.ofNullable(outputType);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy