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