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

org.wikibrain.sr.Explanation Maven / Gradle / Ivy

There is a newer version: 0.9.1
Show newest version
package org.wikibrain.sr;

import java.util.Arrays;

import java.util.List;

public class Explanation {
    private String format;
    private List information;

    /**
     * Used to make a human-readable explanations of sr measures
     * @param format a string with ?s where the objects should be placed
     * @param information the objects to be placed in the format string
     */
    public Explanation(String format, List information){
        this.format = format;
        this.information = information;
    }

    /**
     * Used to make a human-readable explanations of sr measures
     * @param format a string with ?s where the objects should be placed
     * @param information the objects to be placed in the format string
     */
    public Explanation(String format, Object ... information){
        this.format = format;
        this.information = Arrays.asList(information);
    }


    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public List getInformation() {
        return information;
    }

    public void setInformation(List information) {
        this.information = information;
    }
}