Examples of ordinal()


Examples of com.gitblit.Constants.FederationPullStatus.ordinal()

    if (results.size() == 0) {
      return FederationPullStatus.PENDING;
    }
    FederationPullStatus status = FederationPullStatus.MIRRORED;
    for (FederationPullStatus result : results.values()) {
      if (result.ordinal() < status.ordinal()) {
        status = result;
      }
    }
    return status;
  }
View Full Code Here

Examples of com.github.jmkgreen.morphia.mapping.validation.ConstraintViolation.Level.ordinal()

        }

        if (!ve.isEmpty()) {
            ConstraintViolation worst = ve.iterator().next();
            Level maxLevel = worst.getLevel();
            if (maxLevel.ordinal() >= Level.FATAL.ordinal()) {
                throw new ConstraintViolationException(ve);
            }

            // sort by class to make it more readable
            ArrayList<LogLine> l = new ArrayList<LogLine>();
View Full Code Here

Examples of com.google.gwt.core.ext.TreeLogger.Type.ordinal()

  protected void addLog(LogMessage log) {
    RunningGwtModule logger = loggers.get(log.getModule());
    PublicServices.getService(TerminalService.class).addLog(log, logger);
    Type type = log.getLogLevel();
    logger.type = type;
    if (type.ordinal() < type.ordinal()) {
      notifyLogLevel(log.getModule(), type);
    }
    if (type == Type.WARN) {
     
    } else if (type == Type.ERROR) {
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.JEnumField.ordinal()

      if (expression != null && x.constantExpression.resolvedType.isEnum()) {
        // TODO: propagate enum information?
        assert (expression instanceof JFieldRef);
        JFieldRef fieldRef = (JFieldRef) expression;
        JEnumField field = (JEnumField) fieldRef.getField();
        return new JCaseStatement(info, program.getLiteralInt(field.ordinal()));
      } else {
        return new JCaseStatement(info, (JLiteral) expression);
      }
    }
View Full Code Here

Examples of com.google.ical.values.Weekday.ordinal()

          start = dtStart instanceof TimeValue
              ? new DateTimeValueImpl(start.year(), start.month(), 1, 0, 0, 0)
              : new DateValueImpl(start.year(), start.month(), 1);
          break;
        case WEEKLY:
          int d = (7 + wkst.ordinal() - Weekday.valueOf(dtStart).ordinal()) % 7;
          start = TimeUtils.add(dtStart, new DateValueImpl(0, 0, -d));
          break;
        default: break;
      }
    }
View Full Code Here

Examples of com.google.java.contract.core.model.ElementModifier.ordinal()

  @Override
  public Void visitExecutable(ExecutableElement e, Void unused) {
    ElementModifier v = ElementModifier.visibilityIn(
        ElementModifier.forModifiers(e.getModifiers()));
    if (constructorFound != null
        && constructorFound.ordinal() <= v.ordinal()) {
      return null;
    }

    subtype.clearSuperArguments();
    ExecutableType execType =
View Full Code Here

Examples of com.googlecode.jsendnsca.core.Level.ordinal()

    public void notify(EventObject eventObject) throws Exception {
        // create message payload to send
        String message = eventObject.toString();
        Level level = determineLevel(eventObject);
        MessagePayload payload = new MessagePayload(getHostName(), level.ordinal(), getServiceName(), message);

        if (log.isInfoEnabled()) {
            log.info("Sending notification to Nagios: " + payload.getMessage());
        }
        sender.send(payload);
View Full Code Here

Examples of com.impossibl.postgres.types.PrimitiveType.ordinal()

    PrimitiveType ptype = type.getPrimitiveType();
    if (ptype == null) {
      return Types.OTHER;
    }

    return primitiveToSQLTypeMatrix[ptype.ordinal()];
  }

  public static int getSQLTypeAlias(int sqlType) {

    switch(sqlType) {
View Full Code Here

Examples of com.itextpdf.text.pdf.PRTokeniser.TokenType.ordinal()

                    if (readDepth == 0) {
                        return new PdfBoolean( false );
                    } //else
                    return PdfBoolean.PDFFALSE;
                }
                return new PdfLiteral(-type.ordinal(), tokens.getStringValue());
        }
    }

    /** Decodes a stream that has the FlateDecode filter.
     * @param in the input data
View Full Code Here

Examples of com.jacobpatterson.csci446.program1.core.KonanePiece.ordinal()

      konaneGame.resetBoard();
      KonanePiece turn = KonanePiece.BLACK;
      while(!konaneGame.isOver())
      {
        startTime = System.nanoTime();
        Move move = agents[turn.ordinal()].computeMove();
        endTime   = System.nanoTime();
        timings.put(turn.ordinal(),
            timings.get(turn.ordinal()) + (endTime - startTime));
        turn = turn.oppositeTurn();
        konaneGame.makeMove(move);
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.