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

fr.inria.jtravis.helpers.CommitHelper Maven / Gradle / Ivy

There is a newer version: 2.7
Show newest version
package fr.inria.jtravis.helpers;

import com.google.gson.JsonElement;
import fr.inria.jtravis.entities.Commit;

/**
 * The helper to deal with Commit objects
 *
 * @author Simon Urli
 */
public class CommitHelper extends AbstractHelper {

    public static Commit getCommitFromJsonElement(JsonElement element) {
        return createGson().fromJson(element, Commit.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy