Class NumberUtils

java.lang.Object
com.bc.ceres.binio.util.NumberUtils

public class NumberUtils extends Object
Utility class.
  • Method Details

    • getNumericMember

      public static Number getNumericMember(CompoundData compoundData, int memberIndex) throws IOException
      Returns the numeric value of a compound member, which is of a SimpleType.
      Parameters:
      compoundData - the compound.
      memberIndex - the index of the compound member of interest.
      Returns:
      the numeric value of the compound member of interest, or null if the compound member is not of a SimpleType.
      Throws:
      IOException - if an I/O error occurred.
    • getNumericMemberType

      public static Class<? extends Number> getNumericMemberType(CompoundType compoundData, int memberIndex)
      Returns the numeric type of a compound member, which is of a SimpleType.
      Parameters:
      compoundData - the compound.
      memberIndex - the index of the compound member of interest.
      Returns:
      the numeric type of the compound member of interest, or null if the compound member is not of a SimpleType.