Examples of ordinal()


Examples of aQute.bnd.service.diff.Delta.ordinal()

        Delta packageDelta = baselineInfo.packageDiff.getDelta();

        // Iterate into the package member diffs
        for (Diff pkgMemberDiff : baselineInfo.packageDiff.getChildren()) {
            // Skip deltas that have lesser significance than the overall package delta
            if (pkgMemberDiff.getDelta().ordinal() < packageDelta.ordinal())
                continue;

            if (Delta.ADDED == pkgMemberDiff.getDelta()) {
                @SuppressWarnings("unused")
                Tree pkgMember = pkgMemberDiff.getNewer();
View Full Code Here

Examples of appeng.api.util.AEColor.ordinal()

        TickHandler.instance.getPlayerColors().put( id, marker );

        if ( pos.entityHit instanceof EntitySheep )
        {
          EntitySheep sh = (EntitySheep) pos.entityHit;
          sh.setFleeceColor( col.ordinal() );
        }

        pos.entityHit.attackEntityFrom( DamageSource.causePlayerDamage( p ), 0 );
        NetworkHandler.instance.sendToAll( marker.getPacket() );
      }
View Full Code Here

Examples of bixo.datum.UrlStatus.ordinal()

   
            String statusLine = entry.getString("line");
            String[] pieces = statusLine.split("\t");
            int pos = StatusDatum.FIELDS.getPos(StatusDatum.STATUS_FN);
            UrlStatus status = UrlStatus.valueOf(pieces[pos]);
            statusCounts[status.ordinal()] += 1;
        }
       
       
        for (int i = 0; i < statusCounts.length; i++) {
          if (statusCounts[i] != 0) {
View Full Code Here

Examples of bluffinmuffin.poker.entities.type.GameRoundType.ordinal()

        if (m_state != TypeState.PLAYING)
        {
            return;
        }
       
        if (round.ordinal() - oldRound.ordinal() != 1)
        {
            return;
        }
       
        m_roundState = TypeRoundState.CARDS;
View Full Code Here

Examples of br.com.moonjava.flight.model.base.Status.ordinal()

    Integer assento = request.intParam("assento");

    return query()

        .with("where 1 = 1")
        .with("and VOO.STATUS = ?", status.ordinal())
        .with("and VOO.DATA_PARTIDA >= ?", partida)
        .with("and VOO.DATA_CHEGADA <= ?", chegada)
        .with("and VOO.ORIGEM like concat ('%', ?, '%')", origem)
        .with("and VOO.DESTINO like concat ('%', ?, '%')", destino)
        .with("and VOO.ASSENTO_LIVRE > ?", assento)
View Full Code Here

Examples of buildcraft.api.core.EnumColor.ordinal()

    public void draw(GuiBuildCraft gui, int guiX, int guiY, int mouseX, int mouseY) {
      super.draw(gui, guiX, guiY, mouseX, mouseY);
      EnumColor color = colors.getCurrent();
      if (color != null) {
        gui.bindTexture(TextureMap.locationItemsTexture);
        gui.drawTexturedModelRectFromIcon(guiX + x + 2, guiY + y + 2, BuildCraftTransport.actionPipeColor[color.ordinal()].getIcon(), 16, 16);
      } else {
        gui.drawTexturedModalRect(guiX + x + 2, guiY + y + 2, u, v + h + h, 16, 16);
      }
    }
View Full Code Here

Examples of buildcraft.api.transport.PipeWire.ordinal()

      LogisticsTileGenericPipe tilePipe = (LogisticsTileGenericPipe) tile;
      if (!LogisticsBlockGenericPipe.isFullyDefined(tilePipe.pipe)) {
        return false;
      }

      if (!tilePipe.pipe.bcPipePart.getWireSet()[color.ordinal()]) {
        return false;
      }

      return MainProxy.checkPipesConnections(container, tile);
    }
View Full Code Here

Examples of ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum.ordinal()

              return 1;
            }
            if (o2 == null) {
              return -1;
            }
            return o1.ordinal() - o2.ordinal();
          }
        });

      }
View Full Code Here

Examples of ch.agent.t2.time.DayOfWeek.ordinal()

    TimeIndex t = new Day(year, month, 1);
    DayOfWeek firstOfPeriod = t.getDayOfWeek();
    int workRank = rank;
    if (workRank < 0)
      workRank = max; // try the max
    int week1Offset = name.ordinal() - firstOfPeriod.ordinal();
    if (week1Offset < 0)
      week1Offset += 7;
    int dayOfPeriod = 1 + week1Offset + (workRank - 1) * 7;
    if (rank < 0) {
      if (dayOfPeriod > daysInPeriod)
View Full Code Here

Examples of cleo.search.network.Proximity.ordinal()

    double score = maxScore;
    Proximity degree = Proximity.DEGREE_1;
    for(int i = 0, cnt = results.size(); i < cnt; i++) {
      Hit<Element> hit = results.get(i);
     
      assertTrue(degree.ordinal() <= hit.getProximity().ordinal());
      if(degree.ordinal() == hit.getProximity().ordinal()) {
        assertTrue(score >= hit.getScore());
      }
      score = hit.getScore();
    }
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.