Examples of ordinal()


Examples of eu.flatworld.cstrader.data.System.ordinal()

            lp.setLocation(system, sector, grd);
            locationsProperties.put(itemLine.getItem().getName(), lp);

            itemLine.setLocation(l);
            if (itemLine.isForSale()) {
                newpls[system.ordinal()].getForSale().add(itemLine);
            } else {
                newpls[system.ordinal()].getWanted().add(itemLine);
            }
        }
        return newpls;
View Full Code Here

Examples of fcagnin.jglsdk.glimg.ImageFormat.PixelDataType.ordinal()

    upload.type = 0xFFFFFFFF;
    upload.format = 0xFFFFFFFF;
    upload.blockByteCount = 0;

    PixelDataType pixelDataType = getDataType(imageFormat, forceConvertBits);
    if (pixelDataType.ordinal() >= PixelDataType.NUM_UNCOMPRESSED_TYPES.ordinal()) {
      switch (pixelDataType) {
      case COMPRESSED_BC1:
      case COMPRESSED_UNSIGNED_BC4:
      case COMPRESSED_SIGNED_BC4:
        upload.blockByteCount = 8;
View Full Code Here

Examples of forestry.api.arboriculture.EnumGrowthConditions.ordinal()

    EnumGrowthConditions result = EnumGrowthConditions.HOSTILE;
    for (EnumGrowthConditions cond : conditions) {
      if (cond == EnumGrowthConditions.HOSTILE)
        return EnumGrowthConditions.HOSTILE;

      if (cond.ordinal() > result.ordinal())
        result = cond;
    }

    return result;
  }
View Full Code Here

Examples of forestry.api.mail.EnumPostage.ordinal()

      if (stamp == null)
        continue;

      if (stamp.getItem() instanceof IStamps) {
        EnumPostage postage = ((IStamps) stamp.getItem()).getPostage(stamp);
        collectedPostage[postage.ordinal()] += stamp.stackSize;
      }
    }
  }
}
View Full Code Here

Examples of forestry.arboriculture.WoodType.ordinal()

  }

  @Override
  public String getUnlocalizedName(ItemStack stack) {
    WoodType type = WoodType.getFromCompound(stack.getTagCompound());
    return getBlock().getUnlocalizedName() + "." + type.ordinal(); //To change body of generated methods, choose Tools | Templates.
  }

}
View Full Code Here

Examples of forestry.core.EnumErrorCode.ordinal()

    resetQueen(queen);

    // Not while raining, at night or without light
    EnumErrorCode state = EnumErrorCode.values()[queen.isWorking(housing)];
    if (state != EnumErrorCode.OK) {
      housing.setErrorState(state.ordinal());
      return;
    } else if (housing.getErrorOrdinal() != EnumErrorCode.NOFLOWER.ordinal())
      housing.setErrorState(EnumErrorCode.OK.ordinal());

    // Effects only fire when queen can work.
View Full Code Here

Examples of freenet.client.InsertContext.CompatibilityMode.ordinal()

      context.random.nextBytes(forceCryptoKey);
    }
    this.forceCryptoKey = forceCryptoKey;
   
    CompatibilityMode mode = ctx.getCompatibilityMode();
    if(!(mode == CompatibilityMode.COMPAT_CURRENT || mode.ordinal() >= CompatibilityMode.COMPAT_1416.ordinal()))
      this.cryptoAlgorithm = Key.ALGO_AES_PCFB_256_SHA256;
    else
      this.cryptoAlgorithm = Key.ALGO_AES_CTR_256_SHA256;
    runningPutHandlers = new HashSet<PutHandler>();
    putHandlersWaitingForMetadata = new HashSet<PutHandler>();
View Full Code Here

Examples of freenet.io.AddressTracker.Status.ordinal()

   */
  public int[] getUDPPortsNotForwarded() {
    OpennetManager om = node.getOpennet();
    Status darknetStatus = (node.peers.anyDarknetPeers() ? node.darknetCrypto.getDetectedConnectivityStatus() : AddressTracker.Status.DONT_KNOW);
    Status opennetStatus = om == null ? Status.DONT_KNOW : om.crypto.getDetectedConnectivityStatus();
    if(om == null || opennetStatus.ordinal() >= AddressTracker.Status.DONT_KNOW.ordinal()) {
      if(darknetStatus.ordinal() >= AddressTracker.Status.DONT_KNOW.ordinal()) {
        return new int[] { };
      } else {
        return new int[] { (darknetStatus.ordinal() < AddressTracker.Status.MAYBE_NATED.ordinal() ? -1 : 1) * node.getDarknetPortNumber() };
      }
View Full Code Here

Examples of games.stendhal.common.Direction.ordinal()

    if (doubleClick) {
      action.put("double_click", "");
    }
    Direction dir = calculateZoneChangeDirection(point);
    if (dir != null) {
      action.put("extend", dir.ordinal());
    }
    client.send(action);
  }
 
  /**
 
View Full Code Here

Examples of grammar.model.MatchType.ordinal()

    if (thisMt == MatchType.SUFFIX && otherMt == MatchType.SUFFIX) {
      return getAuxiliaryMatchString(infinitive).length() >
        other.getAuxiliaryMatchString(infinitive).length();
    }
    if (thisMt.ordinal() > otherMt.ordinal())
      return true;
    return false;
  }

  public boolean pronounAgreement() {
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.