Class ShiftrLeafSpec

  • All Implemented Interfaces:
    BaseSpec

    public class ShiftrLeafSpec
    extends ShiftrSpec
    Leaf level Spec object. If this Spec's PathElement matches the input (successful parallel tree walk) this Spec has the information needed to write the given data to the output object.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShiftrLeafSpec​(java.lang.String rawKey, java.lang.Object rhs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(java.lang.String inputKey, Optional<java.lang.Object> inputOptional, WalkedPath walkedPath, java.util.Map<java.lang.String,​java.lang.Object> output, java.util.Map<java.lang.String,​java.lang.Object> context)
      If this Spec matches the inputkey, then do the work of outputting data and return true.
      • Methods inherited from class java.lang.Object

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

      • ShiftrLeafSpec

        public ShiftrLeafSpec​(java.lang.String rawKey,
                              java.lang.Object rhs)
    • Method Detail

      • apply

        public boolean apply​(java.lang.String inputKey,
                             Optional<java.lang.Object> inputOptional,
                             WalkedPath walkedPath,
                             java.util.Map<java.lang.String,​java.lang.Object> output,
                             java.util.Map<java.lang.String,​java.lang.Object> context)
        If this Spec matches the inputkey, then do the work of outputting data and return true.
        Returns:
        true if this this spec "handles" the inputkey such that no sibling specs need to see it