Examples of Match


Examples of match.aggregate.Match

        players.add(new PlayerModel(UUID.randomUUID(), "piet", PlayerState.playing));
        players.add(new PlayerModel(UUID.randomUUID(), "klaas", PlayerState.playing));
        players.add(new PlayerModel(UUID.randomUUID(), "frank", PlayerState.playing));
        players.add(new PlayerModel(UUID.randomUUID(), "henk", PlayerState.playing));

        Match match = new Match(matchId, players);

        return new SoccerMatchModel(players, match);
    }
View Full Code Here

Examples of model.tools.flowmanager.Match

  // This parses JSON from the restAPI to get all the match of a flow for the controller overview
  public static Match getMatch(JSONObject obj)
      throws JSONException, IOException {
   
    Match match = new Match();
   
    // Here we check the values, if they are default we set them empty strings.
    // This way they don't confuse the user into thinking they set something
    // they didn't
    if (!obj.getString("dataLayerDestination").equals("00:00:00:00:00:00"))
      match.setDataLayerDestination(obj.getString("dataLayerDestination"));
    if (!obj.getString("dataLayerSource").equals("00:00:00:00:00:00"))
      match.setDataLayerSource(obj.getString("dataLayerSource"));
    if (!obj.getString("dataLayerType").equals("0x0000"))
      match.setDataLayerType(obj.getString("dataLayerType"));
    if (obj.getInt("dataLayerVirtualLan") > 0)
      match.setDataLayerVLAN(String.valueOf(obj
          .getInt("dataLayerVirtualLan")));
    if (obj.getInt("dataLayerVirtualLanPriorityCodePoint") != 0)
      match.setDataLayerPCP(String.valueOf(obj
          .getInt("dataLayerVirtualLanPriorityCodePoint")));
    if (obj.getInt("inputPort") != 0)
      match.setInputPort(String.valueOf(obj.getInt("inputPort")));
    if (!obj.getString("networkDestination").equals("0.0.0.0"))
      match.setNetworkDestination(obj.getString("networkDestination"));
    // match.setNetworkDestinationMaskLength(String.valueOf(obj.getInt("networkDestinationMaskLen")));
    if (obj.getInt("networkProtocol") != 0)
      match.setNetworkProtocol(String.valueOf(obj
          .getInt("networkProtocol")));
    if (!obj.getString("networkSource").equals("0.0.0.0"))
      match.setNetworkSource(obj.getString("networkSource"));
    // match.setNetworkSourceMaskLength(String.valueOf(obj.getInt("networkSourceMaskLen")));
    if (obj.getInt("networkTypeOfService") != 0)
      match.setNetworkTypeOfService(String.valueOf(obj
          .getInt("networkTypeOfService")));
    if (obj.getInt("transportDestination") != 0)
      match.setTransportDestination(String.valueOf(obj
          .getInt("transportDestination")));
    if (obj.getInt("transportSource") != 0)
      match.setTransportSource(String.valueOf(obj
          .getInt("transportSource")));
    if(obj.getLong("wildcards") != 4194302)
      match.setWildcards(String.valueOf(obj.getLong("wildcards")));

    return match;
  }
View Full Code Here

Examples of mymadrid.entite.Match

        Vector<Match > matchVector = new Vector<Match >();
        String QuerySelect = "Select * from `match`";
        res = ste.executeQuery(QuerySelect);

        while (res.next()) {
            Match m = new Match();
            m.setId(res.getInt(1));
            m.setDate(res.getDate(2));
            m.setHomeTeam(res.getString(3));
            m.setGuestTeam(res.getString(4));
            m.setHomeScore(res.getInt(5));
            m.setGuestScore(res.getInt(6));
            matchVector.add(m);
        }
        return matchVector;
    }
View Full Code Here

Examples of net.sourceforge.pmd.cpd.Match

        assertNotNull( mojo );

        TokenEntry tFirstEntry = new TokenEntry( "public java", "MyClass.java", 34 );
        TokenEntry tSecondEntry = new TokenEntry( "public java", "MyClass3.java", 55 );
        List<Match> tList = new ArrayList<Match>();
        Match tMatch = new Match( 2, tFirstEntry, tSecondEntry );
        tMatch.setSourceCodeSlice( "// ----- ACCESSEURS  avec �l�ments -----" );
        tList.add( tMatch );

        CPDConfiguration cpdConfiguration = new CPDConfiguration();
        cpdConfiguration.setMinimumTileSize( 100 );
        cpdConfiguration.setLanguage( new JavaLanguage() );
View Full Code Here

Examples of net.sourceforge.pmd.cpd.Match

            sink.paragraph_();
        }

        while ( matches.hasNext() )
        {
            Match match = matches.next();

            String code = match.getSourceCodeSlice();

            sink.table();
            sink.tableRow();
            sink.tableHeaderCell();
            sink.text( bundle.getString( "report.cpd.column.file" ) );
            sink.tableHeaderCell_();
            if ( aggregate )
            {
                sink.tableHeaderCell();
                sink.text( bundle.getString( "report.cpd.column.project" ) );
                sink.tableHeaderCell_();
            }
            sink.tableHeaderCell();
            sink.text( bundle.getString( "report.cpd.column.line" ) );
            sink.tableHeaderCell_();
            sink.tableRow_();

            // Iterating on every token entry
            for ( Iterator<TokenEntry> occurrences = match.iterator(); occurrences.hasNext(); )
            {

                TokenEntry mark = occurrences.next();
                generateFileLine( mark );
            }
View Full Code Here

Examples of net.webpasswordsafe.common.util.Constants.Match

            {
                Info.display(textMessages.status(), textMessages.foundPasswords(result.size()));
                refreshTable(result);
            }
        };
        Match match = tagMatchRG.getValue().equals(radioAND) ? Match.AND : Match.OR;
        PasswordService.Util.getInstance().searchPassword(Utils.safeString(searchTextBox.getValue()), activeOnlyCheckBox.getValue(), selectedTags, match, callback);
    }
View Full Code Here

Examples of oi.thekraken.grok.api.Match

  public void test002_numbers() throws Throwable {

    g.addPatternFromFile("patterns/patterns");
    g.compile("%{NUMBER}");

    Match gm = g.match("-42");
    gm.captures();
    assertEquals("{NUMBER=-42}", gm.toMap().toString());

  }
View Full Code Here

Examples of org.apache.muse.ws.dm.muws.Match

    {
        Iterator i = getMatches().iterator();
       
        while (i.hasNext())
        {
            Match next = (Match)i.next();
           
            if (!next.matches(epr))
                return false;
        }
       
        return true;
    }
View Full Code Here

Examples of org.apache.openjpa.trader.domain.Match

    @Override
    public List<Match> matchAsk(Ask ask) {
        List<Match> result = new ArrayList<Match>();
        for (Bid bid : _bids) {
            if (matches(ask, bid)) {
                result.add(new Match(ask, bid));
            }
        }
        return result;
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.functions.Match

        retval[60] = new Rate();
        retval[61] = new Mirr();

        retval[62] = new Irr();
        retval[63] = NumericFunction.RAND;
        retval[64] = new Match();
        retval[65] = DateFunc.instance;
        retval[66] = new TimeFunc();
        retval[67] = CalendarFieldFunction.DAY;
        retval[68] = CalendarFieldFunction.MONTH;
        retval[69] = CalendarFieldFunction.YEAR;
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.