java.lang.Object
org.eclipse.persistence.internal.eis.cobol.helper.Helper

public class Helper extends Object
Purpose: This class contains some simple methods that are helpful and used through the classes
  • Constructor Details

    • Helper

      public Helper()
  • Method Details

    • integerFromString

      public static Integer integerFromString(String string)
      takes a string as an argument and returns the Integer value
    • integerFromHexString

      public static Integer integerFromHexString(String string)
      takes a hex string representation and returns the Integer value
    • byteFromString

      public static byte byteFromString(String string)
    • intFromHexString

      public static int intFromHexString(String string)
      takes a hex string and returns an int value
    • integerFromByte

      public static Integer integerFromByte(byte byteValue)
      takes a byte and returns the Integer value
    • intFromByte

      public static int intFromByte(byte byteValue)
      takes a byte value and returns int value
    • byteFromInt

      public static byte byteFromInt(int intValue)
      takes a int an returns a byte
    • power

      public static int power(int base, int power)
      calculates a exponential value give the base and power