/// <summary> /// Mathematical subtraction operator between this XSInteger and the supplied /// ResultSequence. /// </summary> /// <param name="arg"> /// The ResultSequence to perform a subtraction with </param> /// <returns> A XSInteger consisting of the result of the mathematical /// subtraction. </returns> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.eclipse.wst.xml.xpath2.api.ResultSequence minus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) throws org.eclipse.wst.xml.xpath2.processor.DynamicError public override ResultSequence minus(ResultSequence arg) { ResultSequence carg = convertResultSequence(arg); XSInteger val = (XSInteger)get_single_type(carg, typeof(XSInteger)); return(ResultSequenceFactory.create_new(new XSInteger(int_value() - val.int_value()))); }
/* * (non-Javadoc) * @see org.eclipse.wst.xml.xpath2.processor.internal.types.XSDecimal#lt(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType) */ //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public boolean lt(AnyType arg, org.eclipse.wst.xml.xpath2.api.DynamicContext context) throws org.eclipse.wst.xml.xpath2.processor.DynamicError public override bool lt(AnyType arg, DynamicContext context) { Item carg = convertArg(arg); XSInteger val = (XSInteger)get_single_type(carg, typeof(XSInteger)); int compareResult = int_value().CompareTo(val.int_value()); return(compareResult < 0); }
/// <summary> /// Mathematical modulus operator between this XSInteger and the supplied /// ResultSequence. /// </summary> /// <param name="arg"> /// The ResultSequence to perform a modulus with </param> /// <returns> A XSInteger consisting of the result of the mathematical modulus. </returns> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.eclipse.wst.xml.xpath2.api.ResultSequence mod(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) throws org.eclipse.wst.xml.xpath2.processor.DynamicError public override ResultSequence mod(ResultSequence arg) { ResultSequence carg = convertResultSequence(arg); XSInteger val = (XSInteger)get_single_type(carg, typeof(XSInteger)); System.Numerics.BigInteger result = ((long)int_value()) % (val.int_value()); return(ResultSequenceFactory.create_new(new XSInteger(result))); }
/// <summary> /// Mathematical addition operator between this XSInteger and the supplied /// ResultSequence. /// </summary> /// <param name="arg"> /// The ResultSequence to perform an addition with </param> /// <returns> A XSInteger consisting of the result of the mathematical /// addition. </returns> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public org.eclipse.wst.xml.xpath2.api.ResultSequence plus(org.eclipse.wst.xml.xpath2.api.ResultSequence arg) throws org.eclipse.wst.xml.xpath2.processor.DynamicError public override ResultSequence plus(ResultSequence arg) { ResultSequence carg = convertResultSequence(arg); Item at = get_single_arg(carg); if (!(at is XSInteger)) { DynamicError.throw_type_error(); } XSInteger val = (XSInteger)at; return(ResultSequenceFactory.create_new(new XSInteger(int_value() + val.int_value()))); }