public PredicateSwitchNode()

in src/main/java/com/twitter/nodes/PredicateSwitchNode.java [39:53]


  public PredicateSwitchNode(
      Node<Boolean> predicateNode,
      Node<Resp> trueNode,
      Node<Resp> falseNode
  ) {
    super(String.format(
        "IF::%s(%s, %s)", predicateNode.getName(), trueNode.getName(), falseNode.getName()),
        ImmutableList.<Node>of(predicateNode));
    this.predicateNode = predicateNode;
    this.trueNode = Preconditions.checkNotNull(trueNode);
    this.falseNode = Preconditions.checkNotNull(falseNode);
    if (this.trueNode.canEmitNull() || this.falseNode.canEmitNull()) {
      this.setAllowNull();
    }
  }