/// <summary>Loads a comma-separated list of integers from Properties.</summary> /// <remarks>Loads a comma-separated list of integers from Properties. The list cannot include any whitespace.</remarks> public static int[] GetIntArray(Properties props, string key) { int[] result = MetaClass.Cast(props.GetProperty(key), typeof(int[])); return(ArrayUtils.ToPrimitive(result)); }
/// <summary>Loads a comma-separated list of doubles from Properties.</summary> /// <remarks>Loads a comma-separated list of doubles from Properties. The list cannot include any whitespace.</remarks> public static double[] GetDoubleArray(Properties props, string key) { double[] result = MetaClass.Cast(props.GetProperty(key), typeof(double[])); return(ArrayUtils.ToPrimitive(result)); }
private static void Compare <C>(C[] a1, C[] a2) where C : IComparable { System.Console.Out.Printf("compare(%s, %s) = %d%n", Arrays.ToString(a1), Arrays.ToString(a2), ArrayUtils.CompareArrays(a1, a2)); }