Examples of endsWith()


Examples of ch.entwine.weblounge.common.url.Path.endsWith()

   * Test method for {@link ch.entwine.weblounge.common.impl.url.UrlImpl#endsWith(java.lang.String)}.
   */
  @Test
  public void testEndsWith() {
    Path u = new UrlImpl("/ab/c/d");
    assertTrue(u.endsWith("d"));
    assertTrue(u.endsWith("/d"));
    assertTrue(u.endsWith("/d/"));
    assertFalse(u.endsWith("cd"));
    assertFalse(u.endsWith("c/d/f"));
  }
View Full Code Here

Examples of clojure.lang.PersistentArrayMap.endsWith()

                         while (iter.hasNext())
                        {

                            final String entry=(String)iter.next();

                            if ((entry.endsWith("." + filterstr)) || (entry.equals(filterstr)))
                                return entry;

                        }

                         return null;
View Full Code Here

Examples of com.aptana.shared_core.string.FastStringBuffer.endsWith()

    }

    public boolean writeNewLine(boolean force) throws IOException {
        if (force || lastState == LAST_STATE_WRITE) {
            FastStringBuffer buffer = writer.getBuffer();
            if (buffer.endsWith(": ")) {
                buffer.deleteLast();
            }

            if (lastState == LAST_STATE_NEW_LINE) {
                this.writeIndent();
View Full Code Here

Examples of com.aqpproject.worldmodel.data.Item.endsWith()

        ArrayList<String> currentMissileList = new ArrayList();
        ArrayList<String> currentBombList = new ArrayList();
        ArrayList<String> currentMineList = new ArrayList();
        ArrayList<String> currentDynamicObjectList = new ArrayList();
        for (String it : currentItemList) {
            if (it.startsWith("Missile_") && !it.endsWith("_Explosion")) {
                currentMissileList.add(it);
            } else if (it.startsWith("Bomb_") && !it.endsWith("_Explosion")) {
                currentBombList.add(it);
            } else if (it.startsWith("Mine_") && !it.endsWith("_Explosion")) {
                currentMineList.add(it);
View Full Code Here

Examples of com.aqpproject.worldmodel.data.Item.endsWith()

        ArrayList<String> currentMineList = new ArrayList();
        ArrayList<String> currentDynamicObjectList = new ArrayList();
        for (String it : currentItemList) {
            if (it.startsWith("Missile_") && !it.endsWith("_Explosion")) {
                currentMissileList.add(it);
            } else if (it.startsWith("Bomb_") && !it.endsWith("_Explosion")) {
                currentBombList.add(it);
            } else if (it.startsWith("Mine_") && !it.endsWith("_Explosion")) {
                currentMineList.add(it);
            } else if (it.startsWith("dynamic")) {
                currentDynamicObjectList.add(it);
View Full Code Here

Examples of com.aqpproject.worldmodel.data.Item.endsWith()

        for (String it : currentItemList) {
            if (it.startsWith("Missile_") && !it.endsWith("_Explosion")) {
                currentMissileList.add(it);
            } else if (it.startsWith("Bomb_") && !it.endsWith("_Explosion")) {
                currentBombList.add(it);
            } else if (it.startsWith("Mine_") && !it.endsWith("_Explosion")) {
                currentMineList.add(it);
            } else if (it.startsWith("dynamic")) {
                currentDynamicObjectList.add(it);
            }
        }
View Full Code Here

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

      }
      if (anchor != null) {
        t.append('.');
        t.append(anchor);
      }
      if (t.endsWith(".package-summary"))
          t.setLength(t.length() - 16);

      fullname = t.toString();
      t.clear();
      if (log.isLoggable(Level.FINEST)) {
View Full Code Here

Examples of com.ctc.wstx.util.TextBuffer.endsWith()

            }
        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));
View Full Code Here

Examples of com.ctc.wstx.util.TextBuffer.endsWith()

        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));

        /*
 
View Full Code Here

Examples of com.ctc.wstx.util.TextBuffer.endsWith()

            }
        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));
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.