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

site.sorghum.anno.method.MTProcessResult Maven / Gradle / Ivy

The newest version!
package site.sorghum.anno.method;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author songyinyin
 * @since 2024/1/16 17:17
 */
@Data
@AllArgsConstructor
public class MTProcessResult {

    private boolean success;

    private Object result;

    public static MTProcessResult success(Object result) {
        return new MTProcessResult(true, result);
    }

    public static MTProcessResult success() {
        return new MTProcessResult(true, null);
    }

    public static MTProcessResult fail(Object result) {
        return new MTProcessResult(false, result);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy