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

com.arakelian.jq.JqResponse Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package com.arakelian.jq;

import java.util.List;

import org.immutables.value.Value;

import com.google.common.collect.ImmutableList;

@Value.Immutable
public interface JqResponse {
    @Value.Default
    public default List getErrors() {
        return ImmutableList.of();
    }

    @Value.Derived
    @Value.Auxiliary
    public default boolean hasErrors() {
        return getErrors().size() != 0;
    }

    @Value.Default
    public default String getOutput() {
        return "";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy