Examples of indexOf()


Examples of com.bbn.openmap.dataAccess.shape.EsriGraphicList.indexOf()

        if (list != null) {
            OMGraphic omg = list.selectClosest(e.getX(), e.getY(), 4);
            if (omg != null) {
                // graphicIndex has to be set before selectEntry
                // called.
                graphicIndex = list.indexOf(omg);
                selectEntry(omg);

                ret = true;
            } else {
                if (lsm == null)
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList.indexOf()

    protected void moveOneSlotToBottom(ImageTile[] selectedTiles2) {
        OMGraphicList list = getList();
        if (list != null && selectedTiles != null && selectedTiles.length > 0) {
            for (int i = selectedTiles2.length - 1; i >= 0; i--) {
                ImageTile tile = selectedTiles2[i];
                list.moveIndexedOneToBottom(list.indexOf(tile));
            }
            rebuildListModel();
        }
    }
View Full Code Here

Examples of com.browseengine.bobo.facets.data.TermIntList.indexOf()

    {
      fail("There should NOT be an exception and the message contains ascending order");
      return;
    }
    tsl1.seal();
    assertEquals("Should skip index 0 which is used for dummy null", 1, tsl1.indexOf(0));
  }
 
  public void testDefaultFaccetIterator()
  {
    TermStringList tsl1 = new TermStringList();
View Full Code Here

Examples of com.browseengine.bobo.facets.data.TermStringList.indexOf()

    {
      fail("There should NOT be an exception and the message contains ascending order");
      return;
    }
    tsl1.seal();
    assertEquals("Should skip index 0 which is used for dummy null", 1, tsl1.indexOf(""));
  }

  public void testTermIntListAddWrongOrder()
  {
    TermIntList tsl1 = new TermIntList("000");
View Full Code Here

Examples of com.browseengine.bobo.facets.data.TermValueList.indexOf()

    int freqCount = 0;
   
   
    ArrayList<String> validVals = new ArrayList<String>(_valSet.size());
    for (String val : _valSet){
      int idx = valArray.indexOf(val);
      if (idx>=0){
        validVals.add(valArray.get(idx));    // get and format the value
        freqCount+=dataCache.freqs[idx];
      }
    }
View Full Code Here

Examples of com.caucho.quercus.env.StringValue.indexOf()

      needleLower = String.valueOf(lower);
    }

    StringValue haystackLower = haystack.toLowerCase();

    int i = haystackLower.indexOf(needleLower);

    if (i >= 0)
      return haystack.substring(i);
    else
      return BooleanValue.FALSE;
View Full Code Here

Examples of com.caucho.util.CharBuffer.indexOf()

    if (host == null) {
      InetAddress addr = getConnection().getRemoteAddress();
      return addr.getHostName();
    }

    int p = host.indexOf(':');
    if (p >= 0)
      return host.substring(0, p);
    else
      return host.toString();
  }
View Full Code Here

Examples of com.caucho.util.CharSegment.indexOf()

    CharSegment value = getHeaderBuffer("Content-Type");

    if (value == null)
      return null;

    int i = value.indexOf("charset");
    if (i < 0)
      return null;

    int len = value.length();
    for (i += 7; i < len && Character.isWhitespace(value.charAt(i)); i++) {
View Full Code Here

Examples of com.dci.intellij.dbn.language.common.element.SequenceElementType.indexOf()

                child = child.getTreeNext();
                if (child instanceof PsiWhiteSpace){
                    child = child.getTreeNext();
                }
            }
            return sequenceElementType.indexOf((ElementType) astNode.getElementType(), index);
        }
        return 0;
    }

    public ElementType getElementType() {
View Full Code Here

Examples of com.ericdaugherty.mail.server.configuration.DefaultSmtpServer.indexOf()

            String mxEntry = mxEntries[index];
            int port = 25;

            // Extract the server and the port if the syntax server:port is used
            int indexPort = mxEntry.indexOf(":");
            if (indexPort >= 0) {
                try {
                    port = Integer.parseInt(mxEntry.substring(indexPort+1));
                }
                catch( Exception e ) {
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.