Examples of ordinal()


Examples of com.alibaba.fastjson.annotation.JSONField.ordinal()

            if (annotation != null) {
                if (!annotation.serialize()) {
                    continue;
                }

                ordinal = annotation.ordinal();
                serialzeFeatures = SerializerFeature.of(annotation.serialzeFeatures());
               
                if (annotation.name().length() != 0) {
                    String propertyName = annotation.name();
View Full Code Here

Examples of com.alibaba.rocketmq.common.MQVersion.Version.ordinal()

        case RequestCode.DELETE_KV_CONFIG:
            return this.deleteKVConfig(ctx, request);
        case RequestCode.REGISTER_BROKER:
            Version brokerVersion = MQVersion.value2Version(request.getVersion());
            // 新版本Broker,支持Filter Server
            if (brokerVersion.ordinal() >= MQVersion.Version.V3_0_11.ordinal()) {
                return this.registerBrokerWithFilterServer(ctx, request);
            }
            // 低版本Broker,不支持Filter Server
            else {
                return this.registerBroker(ctx, request);
View Full Code Here

Examples of com.barrybecker4.game.card.Rank.ordinal()

                thisRank = this.ranks.get(i);
                thatRank = score.ranks.get(i);
                i++;
            } while (thisRank == thatRank && i < numRanks);

            return (i <= numRanks) ? thisRank.ordinal() - thatRank.ordinal() : 0;
        }
        return this.type.ordinal() - score.type.ordinal();
    }
}
View Full Code Here

Examples of com.caucho.amber.entity.EntityState.ordinal()

                                 " PK: " + instance.__caucho_getPrimaryKey() +
                                 " state: " + instance.__caucho_getEntityState()));

      EntityState state = instance.__caucho_getEntityState();

      if (EntityState.P_DELETING.ordinal() <= state.ordinal()) {
        if (log.isLoggable(Level.FINER))
          log.log(Level.FINER, L.l("remove is ignoring entity in state " + state));

        return;
      }
View Full Code Here

Examples of com.cedarsoft.maven.clashinspector.mojos.ClashSeverity.ordinal()

  private ClashSeverity detectWorstClashSeverity() {
    ClashSeverity worstClashSeverity = ClashSeverity.SAFE;
    for ( InnerVersionClash innerVersionClash : this.innerVersionClashes ) {

      if ( worstClashSeverity.ordinal() < innerVersionClash.getClashSeverity().ordinal() ) {
        worstClashSeverity = innerVersionClash.getClashSeverity();
      }


    }
View Full Code Here

Examples of com.clashinspector.mojos.ClashSeverity.ordinal()

  private ClashSeverity detectWorstClashSeverity() {
    ClashSeverity worstClashSeverity = ClashSeverity.SAFE;
    for ( InnerVersionClash innerVersionClash : this.innerVersionClashes ) {

      if ( worstClashSeverity.ordinal() < innerVersionClash.getClashSeverity().ordinal() ) {
        worstClashSeverity = innerVersionClash.getClashSeverity();
      }


    }
View Full Code Here

Examples of com.cloud.agent.transport.Request.Version.ordinal()

                    return;
                }

                final byte[] data = task.getData();
                Version ver = Request.getVersion(data);
                if (ver.ordinal() != Version.v1.ordinal() && ver.ordinal() != Version.v3.ordinal()) {
                    s_logger.warn("Wrong version for clustered agent request");
                    super.doTask(task);
                    return;
                }
View Full Code Here

Examples of com.cloud.storage.Snapshot.Type.ordinal()

                throw new InvalidParameterValueException("Unsupported snapshot type " + snapshotTypeStr);
            }
            if (snapshotType == Type.RECURRING) {
                sc.setParameters("snapshotTypeEQ", Type.HOURLY.ordinal(), Type.DAILY.ordinal(), Type.WEEKLY.ordinal(), Type.MONTHLY.ordinal());
            } else {
                sc.setParameters("snapshotTypeEQ", snapshotType.ordinal());
            }
        } else if (intervalTypeStr != null && volumeId != null) {
            Type type = SnapshotVO.getSnapshotType(intervalTypeStr);
            if (type == null) {
                throw new InvalidParameterValueException("Unsupported snapstho interval type " + intervalTypeStr);
View Full Code Here

Examples of com.cloud.utils.DateUtil.IntervalType.ordinal()

        } else {
            try {
                policy = _snapshotPolicyDao.acquireInLockTable(policy.getId());
                policy.setSchedule(cmd.getSchedule());
                policy.setTimezone(timezoneId);
                policy.setInterval((short) intvType.ordinal());
                policy.setMaxSnaps(cmd.getMaxSnaps());
                policy.setActive(true);
                _snapshotPolicyDao.update(policy.getId(), policy);
            } finally {
                if (policy != null) {
View Full Code Here

Examples of com.cloudera.api.model.ApiHealthSummary.ordinal()

      for (ApiService apiService : apiResourceRootV6.getClustersResource()
            .getServicesResource(clusterName).readServices(DataView.SUMMARY)) {
         ApiHealthSummary health = apiService.getHealthSummary();
         logger.debug("Cluster " + clusterName + " Service "
         + apiService.getType() + " status is " + health);
         if (health.ordinal() > summary.ordinal()) {
            summary = health;
         }
      }
      logger.debug("Cluster " + clusterName + " Service status is " + summary);
      return summary;
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.