本文整理汇总了Java中gnu.trove.map.TFloatObjectMap类的典型用法代码示例。如果您正苦于以下问题:Java TFloatObjectMap类的具体用法?Java TFloatObjectMap怎么用?Java TFloatObjectMap使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TFloatObjectMap类属于gnu.trove.map包,在下文中一共展示了TFloatObjectMap类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: equals
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/** {@inheritDoc} */
public boolean equals( Object other ) {
if ( ! ( other instanceof TFloatObjectMap ) ) {
return false;
}
TFloatObjectMap that = ( TFloatObjectMap ) other;
if ( that.size() != this.size() ) {
return false;
}
try {
TFloatObjectIterator iter = this.iterator();
while ( iter.hasNext() ) {
iter.advance();
float key = iter.key();
Object value = iter.value();
if ( value == null ) {
if ( !( that.get( key ) == null && that.containsKey( key ) ) ) {
return false;
}
} else {
if ( !value.equals( that.get( key ) ) ) {
return false;
}
}
}
} catch ( ClassCastException ex ) {
// unused.
}
return true;
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:31,代码来源:TFloatObjectHashMap.java
示例2: readExternal
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// MAP
//noinspection unchecked
_map = ( TFloatObjectMap<V> ) in.readObject();
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:11,代码来源:TFloatObjectMapDecorator.java
示例3: equals
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
@SuppressWarnings("rawtypes")
public boolean equals( Object other ) {
if ( ! ( other instanceof TFloatObjectMap ) ) {
return false;
}
TFloatObjectMap that = ( TFloatObjectMap ) other;
if ( that.size() != this.size() ) {
return false;
}
try {
TFloatObjectIterator iter = this.iterator();
while ( iter.hasNext() ) {
iter.advance();
float key = iter.key();
Object value = iter.value();
if ( value == null ) {
if ( !( that.get( key ) == null && that.containsKey( key ) ) ) {
return false;
}
} else {
if ( !value.equals( that.get( key ) ) ) {
return false;
}
}
}
} catch ( ClassCastException ex ) {
// unused.
}
return true;
}
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:33,代码来源:TFloatObjectHashMap.java
示例4: readExternal
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public void readExternal( ObjectInput in )
throws IOException, ClassNotFoundException {
// VERSION
in.readByte();
// MAP
//noinspection unchecked
_map = ( TFloatObjectMap<V> ) in.readObject();
}
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:13,代码来源:TFloatObjectMapDecorator.java
示例5: putAll
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<? extends V> map ){
map.forEachEntry( PUT_ALL_PROC );
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:5,代码来源:TFloatObjectHashMap.java
示例6: putAll
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void putAll( TFloatObjectMap<? extends V> map ){
map.forEachEntry( PUT_ALL_PROC );
}
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:6,代码来源:TFloatObjectHashMap.java
示例7: putAll
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<V> map ){
map.forEachEntry( PUT_ALL_PROC );
}
开发者ID:major2015,项目名称:easyrec_major,代码行数:5,代码来源:TFloatObjectHashMap.java
示例8: getMap
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
public TFloatObjectMap<V> getMap() {
return container;
}
开发者ID:bacta,项目名称:pre-cu,代码行数:4,代码来源:AutoDeltaFloatObjectMap.java
示例9: getMap
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
public TFloatObjectMap<String> getMap() {
return container;
}
开发者ID:bacta,项目名称:pre-cu,代码行数:4,代码来源:AutoDeltaFloatStringMap.java
示例10: TFloatObjectHashMap
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/**
* Creates a new <code>TFloatObjectHashMap</code> that contains the entries
* in the map passed to it.
*
* @param map the <tt>TFloatObjectMap</tt> to be copied.
*/
public TFloatObjectHashMap( TFloatObjectMap<? extends V> map ) {
this( map.size(), 0.5f, map.getNoEntryKey() );
putAll( map );
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:11,代码来源:TFloatObjectHashMap.java
示例11: TFloatObjectMapDecorator
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/**
* Creates a wrapper that decorates the specified primitive map.
*
* @param map the <tt>TFloatObjectMap</tt> to wrap.
*/
public TFloatObjectMapDecorator( TFloatObjectMap<V> map ) {
super();
this._map = map;
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:10,代码来源:TFloatObjectMapDecorator.java
示例12: getMap
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/**
* Returns a reference to the map wrapped by this decorator.
*
* @return the wrapped <tt>TFloatObjectMap</tt> instance.
*/
public TFloatObjectMap<V> getMap() {
return _map;
}
开发者ID:JianpingZeng,项目名称:xcc,代码行数:9,代码来源:TFloatObjectMapDecorator.java
示例13: TFloatObjectHashMap
import gnu.trove.map.TFloatObjectMap; //导入依赖的package包/类
/**
* Creates a new <code>TFloatObjectHashMap</code> that contains the entries
* in the map passed to it.
*
* @param map the <tt>TFloatObjectMap</tt> to be copied.
*/
public TFloatObjectHashMap( TFloatObjectMap<V> map ) {
this( map.size(), 0.5f, map.getNoEntryKey() );
putAll( map );
}
开发者ID:major2015,项目名称:easyrec_major,代码行数:11,代码来源:TFloatObjectHashMap.java
注:本文中的gnu.trove.map.TFloatObjectMap类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论