Package com.actelion.research.util
Class EncoderIntegerNumbers
- java.lang.Object
-
- com.actelion.research.util.EncoderIntegerNumbers
-
public class EncoderIntegerNumbers extends java.lang.ObjectEncodes integer numbers into a string.
-
-
Constructor Summary
Constructors Constructor Description EncoderIntegerNumbers(int[] arrValue)More values can be added after the constructor was called.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int[]decode(java.lang.String strData)static java.lang.Stringencode(int[] arrValue)Convenience method to encode a array with a given precision.static voidmain(java.lang.String[] args)
-
-
-
Constructor Detail
-
EncoderIntegerNumbers
public EncoderIntegerNumbers(int[] arrValue)
More values can be added after the constructor was called. However, the must not exceed the min and the max value found in arrValue.- Parameters:
arrValue- array with the values that will be encoded. Determines also minimum and maximum encoding value.
-
-
Method Detail
-
decode
public static int[] decode(java.lang.String strData)
- Parameters:
strData-- Returns:
- array with decoded values.
-
encode
public static java.lang.String encode(int[] arrValue)
Convenience method to encode a array with a given precision.- Parameters:
arrValue-- Returns:
-
main
public static void main(java.lang.String[] args)
-
-