
com.balajeetm.mystique.core.ConstantMystTurn Maven / Gradle / Ivy
/*
* Copyright (c) Balajee TM 2016.
* All rights reserved.
* License - @see
*/
/*
* Created on 25 Aug, 2016 by balajeetm
* http://www.balajeetm.com
*/
package com.balajeetm.mystique.core;
import java.util.List;
import com.balajeetm.mystique.core.util.MystiqueConstants;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
/**
* The Class ConstantMystTurn.
*
* @author balajeetm
*/
public class ConstantMystTurn extends AbstractMystTurn {
/* (non-Javadoc)
* @see com.futuresight.util.mystique.Mystique#transform(java.util.List, com.google.gson.JsonObject, java.lang.String)
*/
@Override
public JsonElement transmute(
List source, JsonObject deps, JsonObject aces, JsonObject turn) {
turn = mystiqueLever.asJsonObject(turn, new JsonObject());
return turn.get(MystiqueConstants.VALUE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy