本文整理汇总了Java中gnu.trove.function.TObjectFunction.execute方法的典型用法代码示例。如果您正苦于以下问题:Java TObjectFunction.execute方法的具体用法?Java TObjectFunction.execute怎么用?Java TObjectFunction.execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gnu.trove.function.TObjectFunction
的用法示例。
在下文中一共展示了TObjectFunction.execute方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void transformValues( TObjectFunction<V,V> function ) {
byte[] states = _states;
V[] values = _values;
for ( int i = values.length; i-- > 0; ) {
if ( states[i] == FULL ) {
values[i] = function.execute( values[i] );
}
}
}
示例2: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/**
* Transform the values in this map using <tt>function</tt>.
*
* @param function a <code>TObjectFunction</code> value
*/
public void transformValues(TObjectFunction<V, V> function) {
V[] values = _values;
Object[] set = _set;
for (int i = values.length; i-- > 0;) {
if (set[i] != FREE && set[i] != REMOVED) {
values[i] = function.execute(values[i]);
}
}
}
示例3: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
public void transformValues( TObjectFunction<V,V> function ) {
byte[] states = _states;
V[] values = _values;
for ( int i = values.length; i-- > 0; ) {
if ( states[i] == FULL ) {
values[i] = function.execute( values[i] );
}
}
}
示例4: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/**
* Transform the values in this map using <tt>function</tt>.
*
* @param function a <code>TObjectFunction</code> value
*/
public void transformValues( TObjectFunction<V, V> function ) {
V[] values = _values;
Object[] set = _set;
for ( int i = values.length; i-- > 0; ) {
if ( set[i] != FREE && set[i] != REMOVED ) {
values[i] = function.execute( values[i] );
}
}
}
示例5: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/**
* Transform the values in this map using <tt>function</tt>.
*
* @param function a <code>TObjectFunction</code> value
*/
@Override
public void transformValues( TObjectFunction<V, V> function ) {
V[] values = _values;
Object[] set = _set;
for ( int i = values.length; i-- > 0; ) {
if ( set[i] != FREE && set[i] != REMOVED ) {
values[i] = function.execute( values[i] );
}
}
}
示例6: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/**
* Transform the values in this map using <tt>function</tt>.
*
* @param function a <code>TObjectFunction</code> value
*/
@Override
public void transformValues(TObjectFunction<V, V> function) {
V[] values = _values;
Object[] set = _set;
for (int i = values.length; i-- > 0;) {
if (set[i] != FREE && set[i] != REMOVED) {
values[i] = function.execute(values[i]);
}
}
}
示例7: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void transformValues( TObjectFunction<V,V> function ) {
byte[] states = _states;
V[] values = _values;
for ( int i = values.length; i-- > 0; ) {
if ( states[i] == FULL ) {
values[i] = function.execute( values[i] );
}
}
}
示例8: transformValues
import gnu.trove.function.TObjectFunction; //导入方法依赖的package包/类
/**
* Transform the values in this map using <tt>function</tt>.
*
* @param function a <code>TObjectFunction</code> value
*/
@Override
public void transformValues(TObjectFunction<V, V> function) {
V[] values = _values;
Object[] set = _set;
for (int i = 0; i < values.length; i++) {
if (set[i] != FREE && set[i] != REMOVED) {
values[i] = function.execute(values[i]);
}
}
}