Examples of ordinal()


Examples of groovy.json.JsonTokenType.ordinal()

            token.setEndLine(startLine);
            token.setEndColumn(startColumn + 1);
            token.setType(possibleTokenType);
            token.setText("" + firstChar);

            if (possibleTokenType.ordinal() >= OPEN_CURLY.ordinal() && possibleTokenType.ordinal() <= FALSE.ordinal()) {
                return readingConstant(possibleTokenType, token);
            } else if (possibleTokenType == STRING) {
                StringBuilder currentContent = new StringBuilder("\"");
                // consume the first double quote starting the string
                reader.read();
View Full Code Here

Examples of hudson.Extension.ordinal()

    public static Double priorityOf(final Class<?> type) {
        if (type != null) {
            Extension extension = type.getAnnotation(Extension.class);
            if (extension != null) {
                return Double.valueOf(extension.ordinal());
            }
            ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
            if (qualifier != null) {
                return Double.valueOf(qualifier.extension().ordinal());
            }
View Full Code Here

Examples of io.undertow.servlet.api.TransportGuaranteeType.ordinal()

        if(list == null) {
            exchange.putAttachment(ServletAttachments.REQUIRED_ROLES, list = new ArrayList<Set<String>>());
        }
        list.addAll(securityMatch.getRequiredRoles());
        TransportGuaranteeType type = exchange.getAttachment(ServletAttachments.TRANSPORT_GUARANTEE_TYPE);
        if(type == null || type.ordinal() < securityMatch.getTransportGuaranteeType().ordinal()) {
            exchange.putAttachment(ServletAttachments.TRANSPORT_GUARANTEE_TYPE, securityMatch.getTransportGuaranteeType());
        }
        HttpHandlers.executeHandler(next, exchange);
    }
}
View Full Code Here

Examples of java.math.RoundingMode.ordinal()

            if (value.isNil()) {
                return c.searchInternalModuleVariable("vpRoundingMode");
            }

            RoundingMode javaRoundingMode = javaRoundingModeFromRubyRoundingMode(context.runtime, value);
            RubyFixnum roundingMode = context.runtime.newFixnum(javaRoundingMode.ordinal());
            c.setInternalModuleVariable("vpRoundingMode", roundingMode);

            return c.searchInternalModuleVariable("vpRoundingMode");
        }
        throw context.runtime.newTypeError("first argument for BigDecimal#mode invalid");
View Full Code Here

Examples of javax.annotation.meta.When.ordinal()

            When[][] mergeMatrix) {
        assert a.typeQualifier.equals(b.typeQualifier);

        When aWhen = a.when;
        When bWhen = b.when;
        if (aWhen.ordinal() < bWhen.ordinal()) {
            When tmp = aWhen;
            aWhen = bWhen;
            bWhen = tmp;
        }
View Full Code Here

Examples of javax.lang.model.SourceVersion.ordinal()

  @Override
  public SourceVersion getSupportedSourceVersion() {
    SourceVersion latestSupported = SourceVersion.latestSupported();

    if (latestSupported.ordinal() <= 6) {
      return SourceVersion.RELEASE_6;
    }
    else if (latestSupported.ordinal() <= 8) {
      return latestSupported;
    }
View Full Code Here

Examples of javax.lang.model.type.TypeKind.ordinal()

            }
        }

        private TypeKind coalesceKind(final Type<?> type) {
            final TypeKind kind = type.getKind();
            return kind.ordinal() <= TypeKind.VOID.ordinal() ? kind : TypeKind.DECLARED;
        }

        @Override
        public boolean equals(final Object o) {
            return this == o ||
View Full Code Here

Examples of javax.time.calendar.field.DayOfWeek.ordinal()

            DayOfWeek dow = date.getDayOfWeek();
            if (relative < 2 && dow == this.dow) {
                return date;
            }
            if ((relative & 1) == 0) {
                int daysDiff = dow.ordinal() - this.dow.ordinal();
                return date.plusDays(daysDiff >= 0 ? 7 - daysDiff : -daysDiff);
            } else {
                int daysDiff = this.dow.ordinal() - dow.ordinal();
                return date.minusDays(daysDiff >= 0 ? 7 - daysDiff : -daysDiff);
            }
View Full Code Here

Examples of l2p.gameserver.skills.Stats.ordinal()

    {
      dialog.append("None");
    }
    else
    {
      Calculator c = calculators[stat.ordinal()];
      Func[] funcs = c.getFunctions();
      for(int i = 0; i < funcs.length; i++)
      {
        if(funcs[i]._funcOwner != null)
        {
View Full Code Here

Examples of lineage2.gameserver.model.base.ClassType.ordinal()

    {
      race = classId.getRace();
    }
    if (_templates.containsKey(race.ordinal()))
    {
      if (_templates.get(race.ordinal()).containsKey(type.ordinal()))
      {
        return _templates.get(race.ordinal()).get(type.ordinal()).get(sex.ordinal());
      }
    }
    return null;
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.