Class Ternary<I extends BooleanType<I>,​O extends Type<O>>

  • All Implemented Interfaces:
    Computers.Arity3<I,​O,​O,​O>, Consumers.Arity4<I,​O,​O,​O>

    public class Ternary<I extends BooleanType<I>,​O extends Type<O>>
    extends Object
    implements Computers.Arity3<I,​O,​O,​O>
    An Op that works the same way as the ?: operator. It sets the output to the ifTrueVal if the input is evaluated as true, or ifFalseVal otherwise.
    Author:
    Leon Yang
    Implementation Note:
    op names='logic.match'
    • Constructor Detail

      • Ternary

        public Ternary()