Package hec.lang

Class Const

java.lang.Object
hec.lang.Const
All Implemented Interfaces:
Serializable

public class Const extends Object implements Serializable
This class contains special constants used for setting undefined data values. Several static methods allow testing for and returning the undefined value.
See Also:
  • Field Details

  • Constructor Details

    • Const

      public Const()
  • Method Details

    • getRuleNumber

      public static int getRuleNumber(String rule)
    • getOverrideProtection

      public static boolean getOverrideProtection(String rule)
    • getRule

      public static String getRule(int num)
    • isDefined

      public static boolean isDefined(float x)
    • isUndefined

      public static boolean isUndefined(float x)
    • isValid

      public static boolean isValid(float x)
    • isNotValid

      public static boolean isNotValid(float x)
    • isDefined

      public static boolean isDefined(double x)
    • isUndefined

      public static boolean isUndefined(double x)
    • isValid

      public static boolean isValid(double x)
    • isNotValid

      public static boolean isNotValid(double x)
    • isDefined

      public static boolean isDefined(int x)
    • isUndefined

      public static boolean isUndefined(int x)
    • isValid

      public static boolean isValid(int x)
    • isNotValid

      public static boolean isNotValid(int x)
    • isDefined

      public static boolean isDefined(long x)
    • isUndefined

      public static boolean isUndefined(long x)
    • isValid

      public static boolean isValid(long x)
    • isNotValid

      public static boolean isNotValid(long x)
    • isPracticallyUndefined

      public static boolean isPracticallyUndefined(float x)
      The "isPracticallyUndefined" methods are for dealing with externally undefined values that only approximate the exact Java float or double UNDEFINED representation. They would be used at the time the external representation is received from the data base to immediately reset the value correctly before it becomes part of the data set.
    • isPracticallyUndefined

      public static boolean isPracticallyUndefined(double x)
    • getUndefinedFromPracticallyUndefined

      public static float getUndefinedFromPracticallyUndefined(float x)
      Return the true UNDEFINED value for a float that is numerically close to it.
    • getUndefinedFromPracticallyUndefined

      public static double getUndefinedFromPracticallyUndefined(double x)
      Return the true UNDEFINED value for a double that is numerically close to it.
    • getSystemRegularOverrideProtection

      public static boolean getSystemRegularOverrideProtection(String namedPropertyKey)
    • getSystemIrregularOverrideProtection

      public static boolean getSystemIrregularOverrideProtection(String namedPropertyKey)
    • getSystemRegularOverrideProtection

      public static boolean getSystemRegularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection)
    • getSystemIrregularOverrideProtection

      public static boolean getSystemIrregularOverrideProtection(String namedPropertyKey, boolean defaultOverrideProtection)
    • getSystemIrregularStoreRule

      public static String getSystemIrregularStoreRule(String namedPropertyKey)
    • getSystemRegularStoreRule

      public static String getSystemRegularStoreRule(String namedPropertyKey)
    • getSystemIrregularStoreRule

      public static String getSystemIrregularStoreRule(String namedPropertyKey, String defaultStoreRule)
    • getSystemRegularStoreRule

      public static String getSystemRegularStoreRule(String namedPropertyKey, String defaultStoreRule)