Examples of ordinal()


Examples of com.jcloisterzone.TradeResource.ordinal()

    TradeResource tr = city.getTradeResource();
    if (tr != null) {
      if (cityTradeResources == null) {
        cityTradeResources = new int[TradeResource.values().length];
      }
      cityTradeResources[tr.ordinal()]++;
    }
    if (cityCache != null) {
      cityCache.put(city, this);
    }
    return super.visit(feature);
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.base.SubClass.ordinal()

          if(subsAvailable != null && !subsAvailable.isEmpty())
          {
            for(PlayerClass subClass : subsAvailable)
            {
              content.append("<a action=\"bypass -h npc_" + getObjectId() + "_Subclass 7 " + paramOne + " " + subClass.ordinal() + "\">" + formatClassForDisplay(subClass) + "</a><br>");
            }
          }
          else
          {
            player.sendMessage("There are no sub classes available at this time.");
View Full Code Here

Examples of com.log4ic.enums.Permissions.ordinal()

            }
            LOGGER.info("回传文档信息...");
            if (DocViewer.isEncryption()) {
                String secretKey = DocViewer.getCurrentSecretKey();
                request.getSession().setAttribute("secretKey", secretKey);
                writer.write("{\"uri\":\"" + docUri + "\",\"key\":\"" + secretKey + "\",\"permissions\":" + permissions.ordinal() + "}");
            } else {
                writer.write("{\"uri\":\"" + docUri + "\",\"permissions\":" + permissions.ordinal() + "}");
            }
        } catch (Exception e) {
            LOGGER.error(e);
View Full Code Here

Examples of com.netflix.astyanax.annotations.Component.ordinal()

        List<Field> fields = getInheritedFields(c);
        for (Field field : fields) {
            Component comp = field.getAnnotation(Component.class);
            if (comp != null) {
                retval.add(new ComponentField(new PropertyDescriptor(field.getName(), c).getReadMethod(), comp.ordinal()));
            }
        }
        Collections.sort(retval);
        return retval;
    }
View Full Code Here

Examples of com.oltpbenchmark.benchmarks.auctionmark.util.ItemStatus.ordinal()

            // NUM BIDS
            i_num_bids,
            // END DATE
            i_end_date,
            // STATUS
            i_status.ordinal(),
            // PURCHASE ID
            ip_id,
            // BID ID
            ib_id,
            // BUYER ID
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.SiteVariance.ordinal()

            for (ProducedType targ : pt.getTypeArgumentList()) {
                final Map<String, Object> tpmap = typeParameterMap(targ, from);
                final TypeParameter typeParam = typeParameters == null ? null : typeParameters.next();
                final SiteVariance variance = typeParam == null ? null : usv.get(typeParam);
                if (variance != null) {
                    tpmap.put(MetamodelGenerator.KEY_US_VARIANCE, variance.ordinal());
                }
                list.add(tpmap);
            }
            container.put(KEY_TYPE_PARAMS, list);
        }
View Full Code Here

Examples of com.salesforce.phoenix.schema.PDataType.ordinal()

            return isDeterministic ? NULL_EXPRESSION : ND_NULL_EXPRESSION;
        }
        PDataType type = PDataType.fromLiteral(value);
        byte[] b = type.toBytes(value);
        if (b.length == 0) {
            return TYPED_NULL_EXPRESSIONS[type.ordinal() + ( isDeterministic ? 0 : TYPED_NULL_EXPRESSIONS.length/2)];
        }
        if (type == PDataType.VARCHAR) {
            String s = (String) value;
            if (s.length() == b.length) { // single byte characters only
                type = PDataType.CHAR;
View Full Code Here

Examples of com.sun.java.swing.plaf.gtk.GTKConstants.TextDirection.ordinal()

            if (co != null) {
                dir = co.isLeftToRight() ?
                    TextDirection.LTR : TextDirection.RTL;
            }
        }
        return dir.ordinal();
    }

    public void paintArrow(Graphics g, SynthContext context,
            Region id, int state, ShadowType shadowType, ArrowType direction,
            String detail, int x, int y, int w, int h) {
View Full Code Here

Examples of com.sun.sgs.impl.kernel.StandardProperties.StandardService.ordinal()

                finalStandardService = StandardService.TaskService;
                break;
        }
       
        final int finalServiceOrdinal = finalStandardService.ordinal();

        // load the data service

        String dataServiceClass =
            appProperties.getProperty(StandardProperties.DATA_SERVICE,
View Full Code Here

Examples of com.vmware.bdd.spectypes.HadoopRole.ordinal()

   }

   private int findNodeGroupRoleMinIndex(List<String> ngRoles) {
      Collections.sort(ngRoles, new RoleComparactor());
      HadoopRole role = HadoopRole.fromString(ngRoles.get(0));
      return (null != role) ? role.ordinal() : -1;
   }

}
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.