Examples of LT()


Examples of org.jpox.store.mapped.expression.ScalarExpression.lt()

            {
                expr = expr.noteq(compileAdditiveExpression());
            }
            else if (p.parseChar('<'))
            {
                expr = expr.lt(compileAdditiveExpression());
            }
            else if (p.parseChar('>'))
            {
                expr = expr.gt(compileAdditiveExpression());
            }
View Full Code Here

Examples of org.jquantlib.time.Date.lt()

        assertTrue(nextDate.ge(startDate));

        final Date prevDate = schedule.previousDate(nextDate);
        assertTrue(nextDate.gt(prevDate));

        assertTrue(prevDate.lt(nextDate));
    }

    private void testIsRegular(final Schedule schedule) {
        for (int i = 0; i < 2; i++) {
            schedule.isRegular(i+1);
View Full Code Here

Examples of org.jquantlib.time.Date.lt()

            final Handle<YieldTermStructure> termStructure = index_.termStructure();
            QL.require(termStructure != null , NULL_TERM_STRUCTURE)// QA:[RG]::verified
            final Date today = settings.evaluationDate();
            final Date fixing_date = fixingDate();
            final IndexManager indexManager = IndexManager.getInstance();
            if (fixing_date.lt(today)) {
                final double pastFixing = indexManager.get (index_.name()).get(fixing_date);
                QL.require(!Double.isNaN(pastFixing), "Missing fixing"); // TODO: message
                return pastFixing;
            }
            if (fixing_date.equals(today)) {
View Full Code Here

Examples of org.jquantlib.time.Date.lt()

            if (c != null) {
                d = Date.min(c.accrualStartDate(), d);
            }
        }
        // TODO: code review :: please verify against QL/C++ code
        QL.ensure(d.lt(Date.maxDate()) , not_enough_information_available); // QA:[RG]::verified
        return d;
    }

    public Date maturityDate(final Leg cashflows) {
        Date d = Date.minDate();
View Full Code Here

Examples of org.jquantlib.util.Date.lt()

           exception few lines below we need to add 10 years right away */
        if (y==0 && referenceDate.getYear()<=1909) y+=10;
        int yMod = (referenceDate.getYear() % 10);
        y += referenceDate.getYear() - yMod;
        Date result = nextDate(DateFactory.getFactory().getDate(1, m, y), false);
        if (result.lt(referenceDate))
            return nextDate(DateFactory.getFactory().getDate(1, m, y+10), false);

        return result;
    }

View Full Code Here

Examples of org.vmmagic.unboxed.Address.LT()

        System.out.println("a1 NE a2 " + a1.NE(a2) + " " + (i1 != i2));
        System.out.println("a1 GT a2 " + a1.GT(a2) + " " + (i1 > i2));
        System.out.println("a1 GE a2 " + a1.GE(a2) + " " + (i1 >= i2));

        System.out.println("a2 LE a1 " + a2.LE(a1) + " " + (i2 <= i1));
        System.out.println("a2 LT a1 " + a2.LT(a1) + " " + (i2 < i1));
        System.out.println("a2 EQ a1 " + a2.EQ(a1) + " " + (i2 == i1));
        System.out.println("a2 NE a1 " + a2.NE(a1) + " " + (i2 != i1));
        System.out.println("a2 GT a1 " + a2.GT(a1) + " " + (i2 > i1));
        System.out.println("a2 GE a1 " + a2.GE(a1) + " " + (i2 >= i1));
    }
View Full Code Here

Examples of org.vmmagic.unboxed.Word.LT()

     * @return The block number of the first block, or Word.max() if not found.
     */
    private static Word findFreeBlocks(Word freeBlockCount) {
        final Word max = blockCount.sub(freeBlockCount);
        Word nr = nextBlockNr;
        while (nr.LT(max)) {
            boolean inUse = false;
            Word i;
            for (i = Word.zero(); i.LT(freeBlockCount) && (!inUse); i = i.add(1)) {
                inUse |= isInUse(nr.add(i));
            }
View Full Code Here

Examples of org.vmmagic.unboxed.Word.LT()

        final Word max = blockCount.sub(freeBlockCount);
        Word nr = nextBlockNr;
        while (nr.LT(max)) {
            boolean inUse = false;
            Word i;
            for (i = Word.zero(); i.LT(freeBlockCount) && (!inUse); i = i.add(1)) {
                inUse |= isInUse(nr.add(i));
            }
            if (!inUse) {
                // We found it
                return nr;
View Full Code Here

Examples of org.vmmagic.unboxed.Word.LT()

     * @return The bit number of the first block, or Word.max() if not found.
     */
    private final Word findFreeBits(Word freeBits) {
        final Word max = bits;
        Word nr = nextBitNr;
        while (nr.LT(max)) {
            boolean inUse = false;
            Word i;
            for (i = Word.zero(); i.LT(freeBits) && (!inUse); i = i.add(1)) {
                inUse |= isSet(nr.add(i));
            }
View Full Code Here

Examples of org.vmmagic.unboxed.Word.LT()

        final Word max = bits;
        Word nr = nextBitNr;
        while (nr.LT(max)) {
            boolean inUse = false;
            Word i;
            for (i = Word.zero(); i.LT(freeBits) && (!inUse); i = i.add(1)) {
                inUse |= isSet(nr.add(i));
            }
            if (!inUse) {
                // We found it
                return nr;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.