/** * Sets the receiver to an empty list with the specified initial capacity and the specified distinct values allowed to be hold in this list. * * @param distinctValues an array sorted ascending containing the distinct values allowed to be hold in this list. * @param initialCapacity the number of elements the receiver can hold without auto-expanding itself by allocating new internal memory. */ protected void setUp(long[] distinctValues, int initialCapacity) { this.distinctValues = distinctValues; //java.util.Arrays.sort(this.distinctElements); this.elements = new MinMaxNumberList(0,distinctValues.length-1,initialCapacity); } /**
/** * Sets the receiver to an empty list with the specified initial capacity and the specified distinct values allowed to be hold in this list. * * @param distinctValues an array sorted ascending containing the distinct values allowed to be hold in this list. * @param initialCapacity the number of elements the receiver can hold without auto-expanding itself by allocating new internal memory. */ protected void setUp(long[] distinctValues, int initialCapacity) { this.distinctValues = distinctValues; //java.util.Arrays.sort(this.distinctElements); this.elements = new MinMaxNumberList(0,distinctValues.length-1,initialCapacity); } /**