Examples of ordinal()


Examples of net.sf.joafip.store.service.objectfortest.EnumForTest.ordinal()

   */
  public void testEnum1() throws StoreException, StoreInvalidClassException,
      StoreNotSerializableException, StoreClassNotFoundException,
      StoreDataCorruptedException, StoreTooBigForSerializationException {
    final EnumForTest EnumForTestVal1 = EnumForTest.VAL1;
    final int ordinal = EnumForTestVal1.ordinal();
    final String string = "string1";
    EnumForTestVal1.setObject(string);
    final BobContainer bobContainer = new BobContainer();
    bobContainer.setObject1(EnumForTestVal1);

View Full Code Here

Examples of net.sf.l2j.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 org.apache.abdera.ext.features.Feature.Status.ordinal()

  }
 
  public boolean select(Collection collection) {
    for (String feature : features) {
      Status status = FeaturesHelper.getFeatureStatus(collection, feature);
      if (status != null && status.ordinal() >= minimumStatus.ordinal())
        return true;
    }
    return false;
  }
View Full Code Here

Examples of org.apache.accumulo.server.master.state.TabletState.ordinal()

                  break;
                case ASSIGNED:
                  break;
              }
            }
            counts[state.ordinal()]++;
          }
         
          flushChanges(destinations, assignments, assigned, assignedToDeadServers, unassigned);
         
          // provide stats after flushing changes to avoid race conditions w/ delete table
View Full Code Here

Examples of org.apache.ambari.server.state.State.ordinal()

                  hasDisabled = true;
                } else {
                  if (componentInfo.isMaster()) {
                    hasMaster = true;
                    if(!state.equals(State.STARTED) &&
                        ( masterState == null || state.ordinal() > masterState.ordinal())) {
                      masterState = state;
                    }
                  } else if (componentInfo.isClient()) {
                    hasClient = true;
                    if (!state.equals(State.INSTALLED) &&
View Full Code Here

Examples of org.apache.cloudstack.engine.subsystem.api.storage.StrategyPriority.ordinal()

        StrategyPriority highestPriority = StrategyPriority.CANT_HANDLE;

        T strategyToUse = null;
        for (T strategy : collection) {
            StrategyPriority priority = canHandle.canHandle(strategy);
            if (priority.ordinal() > highestPriority.ordinal()) {
                highestPriority = priority;
                strategyToUse = strategy;
            }
        }
View Full Code Here

Examples of org.apache.empire.data.DataType.ordinal()

            }
        }
        else if ((value instanceof DBColumnExpr))
        {   // Use the value type?
            DataType type2 =  ((DBColumnExpr)value).getDataType();
            if (type2.isNumeric() && type2.ordinal()>type.ordinal())
                return type2;
        }
        // type
        return type;
    }
View Full Code Here

Examples of org.apache.felix.scrplugin.SpecVersion.ordinal()

        for(final ComponentContainerContainer ccc : containers) {
            final SpecVersion globalVersion = module.getOptions().getSpecVersion();

            SpecVersion sv = null;
            for(final ComponentContainer cc : ccc.components ) {
                if ( sv == null || sv.ordinal() < cc.getComponentDescription().getSpecVersion().ordinal() ) {
                    sv = cc.getComponentDescription().getSpecVersion();
                }
            }
            module.getOptions().setSpecVersion(sv);
            final File useFile = new File(descriptorDir, ccc.className + ".xml");
View Full Code Here

Examples of org.apache.hadoop.fs.permission.FsAction.ordinal()

    FsAction otherAction = dirPermissions.getOtherAction();

    StringBuilder builder = new StringBuilder();
    builder.append(userAction.ordinal());
    builder.append(groupAction.ordinal());
    builder.append(otherAction.ordinal());
    String dirPermissionNum = builder.toString();
    System.setProperty("dfs.datanode.data.dir.perm", dirPermissionNum);
    testDirectory.delete();

    MiniCluster.startBlurCluster("target/cluster", 2, 3);
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.SectionName.ordinal()

          if (n1 == null) {
            return n2 == null ? 0 : -1;
          } else if (n2 == null) {
            return -1;
          } else {
            return n1.ordinal() - n2.ordinal();
          }
        }
      });

      for (FileSummary.Section s : sections) {
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.