Examples of matches()


Examples of io.fabric8.gateway.support.UriTemplate.matches()

        UriTemplate template = getUriTemplateObject();
        if (template == null) {
            LOG.warn("getUriTemplateObject() returned null!");
            return null;
        }
        return template.matches(paths, this);
    }

    /**
     * Chooses a back end service from the set of destination templates
     */
 

Examples of io.fathom.cloud.openstack.client.dns.model.Recordset.matches()

                Recordset rrs = entry.getValue();

                boolean found = false;

                for (Recordset i : matches.get(entry.getKey())) {
                    if (rrs.matches(i)) {
                        found = true;
                        break;
                    }
                }

Examples of io.undertow.websockets.core.protocol.Handshake.matches()

    }
  }

  private Handshake getHandshakeToUse(ServletWebSocketHttpExchange exchange, ConfiguredServerEndpoint endpoint) {
    Handshake handshake = new JsrHybi13Handshake(endpoint);
    if (handshake.matches(exchange)) {
      return handshake;
    }
    handshake = new JsrHybi08Handshake(endpoint);
    if (handshake.matches(exchange)) {
      return handshake;

Examples of io.undertow.websockets.jsr.handshake.JsrHybi13Handshake.matches()

    }
  }

  private Handshake getHandshakeToUse(ServletWebSocketHttpExchange exchange, ConfiguredServerEndpoint endpoint) {
    Handshake handshake = new JsrHybi13Handshake(endpoint);
    if (handshake.matches(exchange)) {
      return handshake;
    }
    handshake = new JsrHybi08Handshake(endpoint);
    if (handshake.matches(exchange)) {
      return handshake;

Examples of java.lang.String.matches()

        InputStreamReader read = new InputStreamReader(new FileInputStream(path), "UTF-8");
        BufferedReader in = new BufferedReader(read);
        String s;
        while ((s = in.readLine()) != null){
          s = s.trim();
          if (!s.matches("^$"))
            sWord.add(s);
        }
        in.close();
      }catch (Exception e) {
        System.err.println("停用词文件路径错误");

Examples of java.nio.file.PathMatcher.matches()

        final PathMatcher matcher = FileSystems.getDefault().getPathMatcher("glob:**");
         DirectoryStream.Filter<Path> filter = new DirectoryStream.Filter<Path>() {
            @Override
            public boolean accept(Path entry)  {
                return matcher.matches(entry.getFileName());
            }
        };

        if(starPattern.matcher(searchArgument).matches()) {
            try (DirectoryStream<Path> stream = Files.newDirectoryStream(incPath.toPath(), new DirectoryFilter())) {

Examples of java.util.Collection.matches()

            } else if (type.equals(SelectionCriteria.MATCH)) {
              if ((property instanceof String)
                  && (value instanceof String)) {
                String p = (String) property;
                String s = (String) value;
                if (p.matches(s)) {
                  result.add(entity);
                }
              }
            } else if (type.equals(SelectionCriteria.NOT_MATCH)) {
              if ((property instanceof String)

Examples of java.util.regex.Matcher.matches()

          return false;
        }
      }
      // second step: regex search
      Matcher matcher = mPattern.matcher(value);
      return matcher.matches();
    }
  }


  /**
 

Examples of javango.core.SubappUrl.matches()

  }
  public void testSuburl() throws Exception {
    Injector injector = Guice.createInjector(new MyModule());
    SubappUrl url = new SubappUrl(injector, "^subapp/", SubAppUrls.class);
   
    assertTrue(url.matches("subapp/view/"));
    assertFalse(url.matches("subapp/view1/"));
    assertFalse(url.matches("subapp1/view/"));
   
    try {
      MethodObjectParams map = url.getMethodObjectParams("subapp/view/", new HttpRequest());

Examples of javax.media.Format.matches()

      {
        Format f2 = f2s[i];
        assertTrue(f1.equals(f2));
        assertTrue(f1.matches(f2));
        assertTrue(f2.equals(f1));
        assertTrue(f2.matches(f1));
      }
    }
   
    // not equal and not match:
    {
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.