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

com.algorithmia.algo.Metadata Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
package com.algorithmia.algo;

import java.io.Serializable;

/**
 * Algorithm response metadata
 */
public final class Metadata implements Serializable {

    private ContentType content_type;
    private Double duration;
    private String stdout;

    public Metadata(ContentType content_type, Double duration) {
        this(content_type, duration, null);
    }

    public Metadata(ContentType content_type, Double duration, String stdout) {
        this.content_type = content_type;
        this.duration = duration;
        this.stdout = stdout;
    }

    public ContentType getContentType() {
      return content_type;
    }
    public Double getDuration() {
      return duration;
    }
    public String getStdout() {
      return stdout;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy