Examples of last()


Examples of com.alibaba.daybits.DayBits.last()

        if (text == null || text.isEmpty()) {
            return null;
        }

        DayBits daybits = DayBitsUtils.parse(text);
        return daybits.last();
    }

    public Long evaluate(String text, String startDate) {
        return evaluate(text, startDate, null);
    }
View Full Code Here

Examples of com.baasbox.service.query.PartsParser.last()

      parts.add(PartFactory.parse(".field"+i, i+1));
    }
    PartsParser parser = new PartsParser(parts);
    String jn = parser.treeFields();
    assertEquals(jn, "field0.field1.field2");
    assertEquals(parser.last().getName(), "field2");
    assertEquals(parser.lastParent().getName(), "field1");
    assertEquals(parser.first().getName(), "field0");
   
   
  }
View Full Code Here

Examples of com.extentech.toolkit.CompatibleVector.last()

       }catch(NumberFormatException e){};
    }
    // reverse array
    Double[] dubRefs= new Double[sortedValues.size()];
    for (int i=0; i < dubRefs.length; i++){
      dubRefs[i] = (Double)sortedValues.last();
      sortedValues.remove(sortedValues.size()-1);
    }
       
    return new PtgNumber((dubRefs[k-1]).doubleValue());
/*  
View Full Code Here

Examples of com.flaptor.indextank.index.scorer.CategoryMaskManager.CategoryValueInfo.last()

    }
     
      for (Pair<String, CategoryValueInfo> categoryValueInfo : categoryValueInfos) {
      for (Pair<String, CategoryValueInfo> categoryValueInfo2 : categoryValueInfos) {
        if (!categoryValueInfo.first().equals(categoryValueInfo2.first())) {
          int[] bitmask = categoryValueInfo.last().getBitmask();
          int[] bitmask2 = categoryValueInfo2.last().getBitmask();
         
          for (int i = 0; i < Math.min(bitmask.length, bitmask2.length); i++) {
            assertEquals(0, (int)(bitmask[i] & bitmask2[i]))
          }
View Full Code Here

Examples of com.github.jsonj.JsonArray.last()

    }

    public void shouldConvertLineString() {
        JsonArray ls = toJsonJLineString(lineString1);
        assertThat(ls.first().asArray(), is(toJsonJPoint(point1)));
        assertThat(ls.last().asArray(), is(toJsonJPoint(point3)));
    }

    public void shouldSwapPoints() {
        JsonArray ls = toJsonJLineString(lineString1);
        JsonArray swapped = swapLatLon(ls);
View Full Code Here

Examples of com.google.wave.extensions.tweety.util.WaveSubmittedTweetsCache.last()

      WaveSubmittedTweetsCache cache = new WaveSubmittedTweetsCache();
      if (!newTweets.isEmpty()) {
        twitterWave.setLatestTweetId(newTweets.get(0).getId());
        cache.purge(twitterWave.getWaveId(), twitterWave.getLatestTweetId());
      } else {
        String lastTweetSubmitted = cache.last(twitterWave.getWaveId());
        if (!Util.isEmpty(lastTweetSubmitted) &&
            lastTweetSubmitted.compareTo(twitterWave.getLatestTweetId()) > 0) {
          twitterWave.setLatestTweetId(lastTweetSubmitted);
          cache.purge(twitterWave.getWaveId(), lastTweetSubmitted);
        }
View Full Code Here

Examples of com.googlecode.jslint4java.JSFunction.Builder.last()

        public JSFunction convert(Object obj) {
            Scriptable scope = (Scriptable) obj;
            String name = Util.stringValue("name", scope);
            int line = Util.intValue("line", scope);
            Builder b = new JSFunction.Builder(name, line);
            b.last(Util.intValue("last", scope));
            for (String param : Util.listValueOfType("parameter", String.class, scope)) {
                b.addParam(param);
            }
            for (String closure : Util.listValueOfType("closure", String.class, scope)) {
                b.addClosure(closure);
View Full Code Here

Examples of com.hazelcast.util.SortedQueryResultSet.last()

            final K key = toObject(entry.getKey());
            final V value = toObject(entry.getValue());
            sortedResult.add(new AbstractMap.SimpleImmutableEntry<K, V>(key, value));
        }

        PagingPredicateAccessor.setPagingPredicateAnchor(pagingPredicate, sortedResult.last());

        return (Set<K>)sortedResult;
    }

    @Override
View Full Code Here

Examples of com.ibm.icu.text.BreakIterator.last()

        // now do it backwards...
        offset = iterator.last();
        count = 0;

        do {
            testOffset = testIterator.last();
            testOffset = testIterator.next(count);
            logln("next(" + count + ") -> " + testOffset);
            if (offset != testOffset)
                errln("next(n) and next() not returning consistent results: for step " + count + ", next(n) returned " + testOffset + " and next() had " + offset);
View Full Code Here

Examples of com.ibm.icu.text.Normalizer.last()

   
            // test last()/previous() with an internal buffer overflow
            StringBuffer buf = new StringBuffer("aaaaaaaaaa");
            buf.setCharAt(10-1,'\u0308');
            clone.setText(buf);
            if(clone.last()!=0x308) {
                errln("error in Normalizer(10*U+0308).last()");
            }
   
            // test UNORM_NONE
            norm.setMode(Normalizer.NONE);
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.