Examples of endsWith()


Examples of org.jboss.cache.Fqn.endsWith()

      index = 3;
      for (NodeEntry ne : queue)
      {
         String fqn = ne.getFqn().toString();
         assertTrue(fqn.endsWith("/" + Integer.toString(index)));
         index++;
      }
   }

   public void testMaxNodes2() throws Exception
View Full Code Here

Examples of org.jboss.cache.Fqn.endsWith()

      // now verify the order.
      int index = 3;
      for (NodeEntry ne : queue)
      {
         String fqn = ne.getFqn().toString();
         assertTrue(fqn.endsWith("/" + Integer.toString(index)));
         index++;
      }

      // now verify the same order still exists after visiting the nodes.
      for (int i = 3; i < 8; i++)
View Full Code Here

Examples of org.jboss.cache.Fqn.endsWith()

      index = 3;
      for (NodeEntry ne : queue)
      {
         String fqn = ne.getFqn().toString();
         assertTrue(fqn.endsWith("/" + Integer.toString(index)));
         index++;
      }
   }

   public void testMaxNodes2() throws Exception
View Full Code Here

Examples of org.jboss.cdi.tck.util.ActionSequence.endsWith()

        // 1. Destroy contexts (the order is not set)
        // 2. BeforeShutdown event
        TextPage info = webClient.getPage(infoContext + "info?action=get");
        ActionSequence actual = ActionSequence.buildFromCsvData(info.getContent());
        assertTrue(actual.endsWith(BeforeShutdown.class.getName()));
        assertTrue(actual.containsAll(RequestScoped.class.getName(), SessionScoped.class.getName(),
                ApplicationScoped.class.getName(), ConversationScoped.class.getName(), Foo.class.getName(),
                Bar.class.getName(), Baz.class.getName(), Qux.class.getName()));

        // Undeploy info
View Full Code Here

Examples of org.jruby.util.ByteList.endsWith()

                line = args[i].asString().getByteList();
            }
           
            write(context, line);
           
            if (line.length() == 0 || !line.endsWith(separator.getByteList())) {
                write(context, separator.getByteList());
            }
        }
        return runtime.getNil();
    }
View Full Code Here

Examples of org.jruby.util.ByteList.endsWith()

                line = args[i].asString().getByteList();
            }

            write(context, maybeIO, line);

            if (line.length() == 0 || !line.endsWith(separator.getByteList())) {
                write(context, maybeIO, separator.getByteList());
            }
        }
        return runtime.getNil();
    }
View Full Code Here

Examples of org.springframework.data.elasticsearch.core.query.Criteria.endsWith()

        return criteria.expression(parameters.next().toString());
      case LIKE:
      case STARTING_WITH:
        return criteria.startsWith(parameters.next().toString());
      case ENDING_WITH:
        return criteria.endsWith(parameters.next().toString());
      case CONTAINING:
        return criteria.contains(parameters.next().toString());
      case AFTER:
      case GREATER_THAN:
      case GREATER_THAN_EQUAL:
View Full Code Here

Examples of org.springframework.data.solr.core.query.Criteria.endsWith()

      case STARTING_WITH:
        return criteria.startsWith(asStringArray(appendBoostAndGetParameterValue(criteria, parameters)));
      case NOT_LIKE:
        return criteria.startsWith(asStringArray(appendBoostAndGetParameterValue(criteria, parameters))).not();
      case ENDING_WITH:
        return criteria.endsWith(asStringArray(appendBoostAndGetParameterValue(criteria, parameters)));
      case CONTAINING:
        return criteria.contains(asStringArray(appendBoostAndGetParameterValue(criteria, parameters)));
      case AFTER:
      case GREATER_THAN:
        return criteria.greaterThan(appendBoostAndGetParameterValue(criteria, parameters));
View Full Code Here

Examples of org.uberfire.java.nio.file.Path.endsWith()

    public void endsWith() {
        when( fs.getSeparator() ).thenReturn( "/" );

        final Path path = create( fs, "/path/to/file.txt", false );

        assertTrue( path.endsWith( create( fs, "file.txt", false ) ) );
        assertTrue( path.endsWith( create( fs, "to/file.txt", false ) ) );
        assertTrue( path.endsWith( create( fs, "/path/to/file.txt", false ) ) );
        assertFalse( path.endsWith( create( fs, "filename.txt", false ) ) );
        assertFalse( path.endsWith( create( fs, "/some/other/path/to/file.txt", false ) ) );
        assertFalse( path.endsWith( create( fs, "txt", false ) ) );
View Full Code Here

Examples of project.gluebooster.graphics.PolyLine.endsWith()

      {
         for (RectangleWithRef<Vertex,?> vertex : nodeMapping.values())
         {
            int equalityDistance = 5;
            if (line.intersects(vertex)
                  && !(line.startsWith(vertex.getCenter(), equalityDistance) || (line
                        .endsWith(vertex.getCenter(), equalityDistance))))
            {
               // determine which diagonale part is intersected and add another
               // point to the polyline
               Line2D.Double diagonalePart = vertex.getUpperLeftDiagonaleLine();
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.