Examples of longValue()


Examples of jodd.mutable.MutableLong.longValue()

        if (currentTime == null) {
          // new file
          map.put(file, new MutableLong(lastModified));
          onChange(file, Event.CREATED);
        }
        else if (currentTime.longValue() != lastModified) {
          // modified file
          currentTime.setValue(lastModified);
          onChange(file, Event.MODIFIED);
        }
      }
View Full Code Here

Examples of krati.io.serializer.LongSerializer.longValue()

        long val = 0;
        assertEquals(val, serializer.longValue(serializer.longBytes(val)));
        val = minValue();
        assertEquals(val, serializer.longValue(serializer.longBytes(val)));
        val = maxValue();
        assertEquals(val, serializer.longValue(serializer.longBytes(val)));
        val = anyValue();
        assertEquals(val, serializer.longValue(serializer.longBytes(val)));
    }
}
View Full Code Here

Examples of macromedia.asc.util.Decimal128.longValue()

                    dval = Decimal128.ZERO.subtract(dval);
            }
        }
        if (!force && isInt) {
            // value is integral.  See if it fits in a smaller type
            long ival = dval.longValue();
            if ((Integer.MIN_VALUE <= ival) && (ival <= Integer.MAX_VALUE)) {
                ppType[0] = cx.intType();
                return new IntNumberConstant((int)ival);
            }
            else if ((0 <= ival) && (ival <= MAXUINT)) {
View Full Code Here

Examples of net.fortytwo.ripple.model.NumericValue.longValue()

                case FLOAT:
                    return n.floatValue();
                case INTEGER:
                    return n.intValue();
                case LONG:
                    return n.longValue();
                default:
                    throw new ScriptException("numeric value of unexpected type: " + v);
            }
        } else if (v instanceof RDFValue) {
            return toJavaObject(((RDFValue) v).sesameValue());
View Full Code Here

Examples of net.sf.saxon.value.NumericValue.longValue()

        NumericValue gp = (NumericValue)gp0;
        RegexIterator iter = c.getCurrentRegexIterator();
        if (iter == null) {
            return StringValue.EMPTY_STRING;
        }
        String s = iter.getRegexGroup((int)gp.longValue());
        if (s == null) {
            return StringValue.EMPTY_STRING;
        }
        return StringValue.makeStringValue(s);
    }
View Full Code Here

Examples of org.apache.axis.types.NonNegativeInteger.longValue()

            }

            int numRecs = defaultNumRecs;
            NonNegativeInteger maxRecs = request.getMaximumRecords();
            if (maxRecs!=null)
                numRecs = (int) Math.min(maxRecs.longValue(), maximumRecords);

            long startPoint = 1;
            PositiveInteger startRec = request.getStartRecord();
            if(startRec!=null)
                startPoint=startRec.longValue();
View Full Code Here

Examples of org.apache.axis.types.PositiveInteger.longValue()

                numRecs = (int) Math.min(maxRecs.longValue(), maximumRecords);

            long startPoint = 1;
            PositiveInteger startRec = request.getStartRecord();
            if(startRec!=null)
                startPoint=startRec.longValue();
            if (startPoint>postingsCount)
                diagnostic(SRWDiagnostic.FirstRecordPositionOutOfRange,
                        null, response);

            if ((startPoint-1+numRecs)>postingsCount)
View Full Code Here

Examples of org.apache.commons.lang.mutable.MutableLong.longValue()

      FrequentPatternMaxHeap frequentPatterns = growth(tree, minSupport, k,
        treeCache, 0, attribute, updater);
      patterns.put(attribute, frequentPatterns);
      outputCollector.collect(attribute, frequentPatterns);
     
      minSupportValue = Math.max(minSupportValue, minSupport.longValue() / 2);
      log.info("Found {} Patterns with Least Support {}", patterns.get(
        attribute).count(), patterns.get(attribute).leastSupport());
    }
    log.info("Tree Cache: First Level: Cache hits={} Cache Misses={}",
      treeCache.getHits(), treeCache.getMisses());
View Full Code Here

Examples of org.apache.commons.lang3.mutable.MutableLong.longValue()

        FrequentPatternMaxHeap frequentPatterns = growth(tree, minSupport, k,
                                                         attribute, updater);
        patterns.put(attribute, frequentPatterns);
        outputCollector.collect(attribute, frequentPatterns);

        minSupportValue = Math.max(minSupportValue, minSupport.longValue() / 2);
        log.info("Found {} Patterns with Least Support {}", patterns.get(
            attribute).count(), patterns.get(attribute).leastSupport());
      }
    }
    return patterns;
View Full Code Here

Examples of org.apache.commons.weaver.test.beans.ComplexAnnotations.NestAnnotation.longValue()

        assertTrue(Arrays.equals(new double[] { 0.0 }, nest1.doubleValues()));
        assertEquals(Float.valueOf(0.0f), Float.valueOf(nest1.floatValue()));
        assertTrue(Arrays.equals(new float[] { 0.0f }, nest1.floatValues()));
        assertEquals(0, nest1.intValue());
        assertArrayEquals(new int[] { 0 }, nest1.intValues());
        assertEquals(0L, nest1.longValue());
        assertArrayEquals(new long[] { 0L }, nest1.longValues());
        assertEquals((short) 0, nest1.shortValue());
        assertArrayEquals(new short[] { 0 }, nest1.shortValues());
        assertSame(CURLY, nest1.stooge());
        assertArrayEquals(new Stooge[] { MOE, LARRY, SHEMP }, nest1.stooges());
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.