public PowerNumberComposer( INumberComposer x, INumberComposer y) { _x = x ?? throw new ArgumentNullException(nameof(x)); _y = y ?? throw new ArgumentNullException(nameof(y)); }
public RangeIndex( INumberComposer from, INumberComposer to) { _from = @from; _to = to; }
private static int?TryExtractIndexValue( INumberComposer composer, JObject input, Path parentPath) { if (composer == null) { return(null); } var composition = composer.Compose( input, parentPath); if (!composition.IsSuccess) { throw new NotImplementedException("handle possible problems"); } if (composition.GetDecimal().IsInteger(out var value)) { return(value); } throw new NotImplementedException("handle floating point value problem"); }
public IfPickIndexElementComposer( INumberComposer valueComposer, ICondition condition = null) { _valueComposer = valueComposer ?? throw new ArgumentNullException(nameof(valueComposer)); _condition = condition ?? new TrueCondition(); }
public NumericCondition( INumberComposer left, INumberComposer right) { _left = left; _right = right; }
public MultiplicationComposer( INumberComposer x, INumberComposer y) { _x = x; _y = y; }
public DivisionComposer( INumberComposer x, INumberComposer y) { _x = x; _y = y; }
public AdditionComposer( INumberComposer x, INumberComposer y) { _x = x; _y = y; }
public SubtractionComposer( INumberComposer x, INumberComposer y) { _x = x; _y = y; }
public NegationComposer( INumberComposer x) { _x = x; }
public GreaterThanNumericCondition( INumberComposer left, INumberComposer right) : base(left, right) { }
public GreaterOrEqualToNumericCondition( INumberComposer left, INumberComposer right) : base(left, right) { }
public NumberComposer( INumberComposer number) { _number = number ?? throw new ArgumentNullException(nameof(number)); }