Class OperandMustacheToken

  • All Implemented Interfaces:
    com.adobe.marketing.mobile.rulesengine.Operand

    
    public class OperandMustacheToken<T>
     implements Operand<T>
                        

    Class to handle the mustache token Operand.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      T resolve(Context context) Returns the resolved value of the MustacheToken operand.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OperandMustacheToken

        OperandMustacheToken(String tokenString, Class<T> tClass)
        Constructor.
        Parameters:
        tokenString - string representing a mustache token operand
        tClass - string representing a mustache token operand
    • Method Detail

      • resolve

         T resolve(Context context)

        Returns the resolved value of the MustacheToken operand. An invalid mustacheToken operand returns null.

        Parameters:
        context - The context contains details for token swapping and transforming the operand if required
        Returns:

        the resolved operand value