Search in sources :

Example 1 with ByteArrayList

use of cern.colt.list.ByteArrayList in project tdq-studio-se by Talend.

the class OpenDoubleIntHashMap method clear.

/**
 * Removes all (key,value) associations from the receiver.
 * Implicitly calls <tt>trimToSize()</tt>.
 */
public void clear() {
    new ByteArrayList(this.state).fillFromToWith(0, this.state.length - 1, FREE);
    // new DoubleArrayList(values).fillFromToWith(0, state.length-1, 0); // delta
    this.distinct = 0;
    // delta
    this.freeEntries = table.length;
    trimToSize();
}
Also used : ByteArrayList(cern.colt.list.ByteArrayList)

Example 2 with ByteArrayList

use of cern.colt.list.ByteArrayList in project tdq-studio-se by Talend.

the class OpenIntDoubleHashMap method clear.

/**
 * Removes all (key,value) associations from the receiver.
 * Implicitly calls <tt>trimToSize()</tt>.
 */
public void clear() {
    new ByteArrayList(this.state).fillFromToWith(0, this.state.length - 1, FREE);
    // new DoubleArrayList(values).fillFromToWith(0, state.length-1, 0); // delta
    /*
	if (debug) {
		for (int i=table.length; --i >= 0; ) {
		    state[i] = FREE;
		    table[i]= Integer.MAX_VALUE;
		    values[i]= Double.NaN;
		}
	}
	*/
    this.distinct = 0;
    // delta
    this.freeEntries = table.length;
    trimToSize();
}
Also used : ByteArrayList(cern.colt.list.ByteArrayList)

Example 3 with ByteArrayList

use of cern.colt.list.ByteArrayList in project tdq-studio-se by Talend.

the class OpenIntIntHashMap method clear.

/**
 * Removes all (key,value) associations from the receiver.
 * Implicitly calls <tt>trimToSize()</tt>.
 */
public void clear() {
    new ByteArrayList(this.state).fillFromToWith(0, this.state.length - 1, FREE);
    // new IntArrayList(values).fillFromToWith(0, state.length-1, 0); // delta
    this.distinct = 0;
    // delta
    this.freeEntries = table.length;
    trimToSize();
}
Also used : ByteArrayList(cern.colt.list.ByteArrayList)

Example 4 with ByteArrayList

use of cern.colt.list.ByteArrayList in project tdq-studio-se by Talend.

the class OpenLongObjectHashMap method clear.

/**
 * Removes all (key,value) associations from the receiver.
 * Implicitly calls <tt>trimToSize()</tt>.
 */
public void clear() {
    new ByteArrayList(this.state).fillFromToWith(0, this.state.length - 1, FREE);
    // delta
    new ObjectArrayList(values).fillFromToWith(0, state.length - 1, null);
    this.distinct = 0;
    // delta
    this.freeEntries = table.length;
    trimToSize();
}
Also used : ObjectArrayList(cern.colt.list.ObjectArrayList) ByteArrayList(cern.colt.list.ByteArrayList)

Example 5 with ByteArrayList

use of cern.colt.list.ByteArrayList in project tdq-studio-se by Talend.

the class OpenIntObjectHashMap method clear.

/**
 * Removes all (key,value) associations from the receiver.
 * Implicitly calls <tt>trimToSize()</tt>.
 */
public void clear() {
    new ByteArrayList(this.state).fillFromToWith(0, this.state.length - 1, FREE);
    // delta
    new ObjectArrayList(values).fillFromToWith(0, state.length - 1, null);
    this.distinct = 0;
    // delta
    this.freeEntries = table.length;
    trimToSize();
}
Also used : ObjectArrayList(cern.colt.list.ObjectArrayList) ByteArrayList(cern.colt.list.ByteArrayList)

Aggregations

ByteArrayList (cern.colt.list.ByteArrayList)5 ObjectArrayList (cern.colt.list.ObjectArrayList)2