Examples of indexOf()


Examples of com.google.eclipse.protobuf.ui.grammar.CompoundElement.indexOf()

    if (model instanceof MessageField) {
      MessageField field = (MessageField) model;
      Modifier modifier = field.getModifier();
      if (OPTIONAL.equals(modifier)) {
        CompoundElement display = DEFAULT_EQUAL_IN_BRACKETS;
        int cursorPosition = display.indexOf(CLOSING_BRACKET);
        if (messageFields.isString(field)) {
          display = DEFAULT_EQUAL_STRING_IN_BRACKETS;
          cursorPosition++;
        }
        createAndAccept(display, cursorPosition, context, acceptor);
View Full Code Here

Examples of com.google.gwt.libideas.resources.client.ImmutableResourceBundle.Resource.indexOf()

    boolean error = false;
    int tagIndex = 0;
    for (String resource : resources) {

      // Make sure the name is either absolute or package-relative.
      if (resource.indexOf("/") == -1) {
        String pkgName = method.getEnclosingType().getPackage().getName();

        // This construction handles the default package correctly, too.
        resource = pkgName.replace('.', '/') + "/" + resource;
      }
View Full Code Here

Examples of com.google.gwt.user.client.ui.WidgetCollection.indexOf()

  public boolean remove(final Widget widget) {
    Checker.notNull("parameter:widget", widget);

    boolean removed = false;
    final WidgetCollection widgets = this.getWidgetCollection();
    final int index = widgets.indexOf(widget);
    if (-1 != index) {
      this.remove(index);
      removed = true;
    }
View Full Code Here

Examples of com.hazelcast.core.IList.indexOf()

//    ========================= IndexOf =============================

    @Test
    public void testIndexOf() {
        IList list = newList_withInitialData(10);
        assertEquals(0, list.indexOf("item0"));
        assertEquals(6, list.indexOf("item6"));
        assertEquals(9, list.indexOf("item9"));
        assertEquals(-1, list.indexOf("item15"));
        assertEquals(-1, list.indexOf("item67"));
    }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.RDFList.indexOf()

    for (int i = 0; i < toGet.length; i++)
    {
      Assert.assertTrue("list should contain element " + i,
          l1.contains(toGet[i]));
      Assert.assertEquals("list element " + i + " is not correct", i,
          l1.indexOf(toGet[i]));
    }
  }

  public void testIndex2()
  {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Seq.indexOf()

    seq.add(1, tvAlt);
    Assert.assertEquals(tvAlt, seq.getAlt(1));
    seq.add(1, tvSeq);
    Assert.assertEquals(tvSeq, seq.getSeq(1));
    //
    Assert.assertEquals(0, seq.indexOf(1234543));
    Assert.assertEquals(1, seq.indexOf(tvSeq));
    Assert.assertEquals(2, seq.indexOf(tvAlt));
    Assert.assertEquals(3, seq.indexOf(tvBag));
    Assert.assertEquals(4, seq.indexOf(tvLiteral));
    Assert.assertEquals(5, seq.indexOf(tvResource));
View Full Code Here

Examples of com.ibm.icu.text.UnicodeSet.indexOf()

   */
  public void TestIndexOf() {
    UnicodeSet set = new UnicodeSet("[a-cx-y3578]");
    for (int i=0; i<set.size(); ++i) {
      int c = set.charAt(i);
      if (set.indexOf(c) != i) {
        errln("FAIL: charAt(" + i + ") = " + c +
            " => indexOf() => " + set.indexOf(c));
      }
    }
    int c = set.charAt(set.size());
View Full Code Here

Examples of com.mysema.query.types.path.StringPath.indexOf()

    }
   
    @Test
    public void IndexOf2() {
        StringPath str = QCat.cat.name;
        assertToString("substring(cat.name,1,locate(?1,cat.name)-1)", str.substring(0, str.indexOf("x")));
    }
   
    @Test
    public void IndexOf3() {
        assertToString("substring(cat.name,2,1)", QCat.cat.name.substring(1,2));
View Full Code Here

Examples of com.positive.charts.data.xy.XYDataset.indexOf()

        toIndex = items.size() - 1;
      }
      final List subSeries = items.subList(fromIndex, toIndex);

      renderer.drawSeriesItems(gc, dataArea, info, this, domainAxis,
          rangeAxis, dataset, dataset.indexOf(s.getKey()), subSeries);
    }

    return true;
  }
View Full Code Here

Examples of com.salas.bb.core.GuideModel.indexOf()

        StandardGuide sGuide = (StandardGuide)guide;

        final GuideModel model = GlobalModel.SINGLETON.getGuideModel();

        // Move channel down if this one isn't already bottom-most.
        final int index = model.indexOf(feed) + 1;
        if (feed != null && index < model.getSize())
        {
            // Get real index
            IFeed entry = (IFeed)model.getElementAt(index);
            int realIndex = guide.indexOf(entry);
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.