当前位置: 首页>>代码示例>>Java>>正文


Java ObjectInput.readFloat方法代码示例

本文整理汇总了Java中java.io.ObjectInput.readFloat方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectInput.readFloat方法的具体用法?Java ObjectInput.readFloat怎么用?Java ObjectInput.readFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在java.io.ObjectInput的用法示例。


在下文中一共展示了ObjectInput.readFloat方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal( ObjectInput in )
        throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // LOAD FACTOR
    float old_factor = _loadFactor;
    _loadFactor = in.readFloat();

    // AUTO COMPACTION LOAD FACTOR
    _autoCompactionFactor = in.readFloat();

    // If we change the laod factor from the default, re-setup
    if ( old_factor != _loadFactor ) {
        setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) );
    }
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:19,代码来源:THash.java

示例2: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
public void readExternal(ObjectInput in)
    throws IOException, ClassNotFoundException
{
    z = in.readBoolean();
    b = in.readByte();
    c = in.readChar();
    s = in.readShort();
    i = in.readInt();
    f = in.readFloat();
    j = in.readLong();
    d = in.readDouble();
    str = (String) in.readObject();
    parent = in.readObject();
    left = in.readObject();
    right = in.readObject();
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:ExternObjTrees.java

示例3: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in )
	throws IOException, ClassNotFoundException {

	// VERSION
	int version = in.readByte();

    // SUPER
	super.readExternal( in );

	// NUMBER OF ENTRIES
    int size = in.readInt();

    if ( version >= 1 ) {
        // LOAD FACTOR
        _loadFactor = in.readFloat();

        // NO ENTRY VALUE
        no_entry_value = in.readByte();
        //noinspection RedundantCast
        if ( no_entry_value != ( byte ) 0 ) {
            Arrays.fill( _set, no_entry_value );
        }
    }

	// ENTRIES
    setUp( size );
    while ( size-- > 0 ) {
        byte val = in.readByte();
        add( val );
    }
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:33,代码来源:TByteHashSet.java

示例4: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readShort();

	// NO_ENTRY_VALUE
	no_entry_value = in.readFloat();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TShortFloatHash.java

示例5: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in )
	throws IOException, ClassNotFoundException {

	// VERSION
	int version = in.readByte();

    // SUPER
	super.readExternal( in );

	// NUMBER OF ENTRIES
    int size = in.readInt();

    if ( version >= 1 ) {
        // LOAD FACTOR
        _loadFactor = in.readFloat();

        // NO ENTRY VALUE
        no_entry_value = in.readFloat();
        //noinspection RedundantCast
        if ( no_entry_value != ( float ) 0 ) {
            Arrays.fill( _set, no_entry_value );
        }
    }

	// ENTRIES
    setUp( size );
    while ( size-- > 0 ) {
        float val = in.readFloat();
        add( val );
    }
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:33,代码来源:TFloatHashSet.java

示例6: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in )
	throws IOException, ClassNotFoundException {

	// VERSION
	int version = in.readByte();

    // SUPER
	super.readExternal( in );

	// NUMBER OF ENTRIES
    int size = in.readInt();

    if ( version >= 1 ) {
        // LOAD FACTOR
        _loadFactor = in.readFloat();

        // NO ENTRY VALUE
        no_entry_value = in.readInt();
        //noinspection RedundantCast
        if ( no_entry_value != ( int ) 0 ) {
            Arrays.fill( _set, no_entry_value );
        }
    }

	// ENTRIES
    setUp( size );
    while ( size-- > 0 ) {
        int val = in.readInt();
        add( val );
    }
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:33,代码来源:TIntHashSet.java

示例7: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readFloat();

	// NO_ENTRY_VALUE
	no_entry_value = in.readByte();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TFloatByteHash.java

示例8: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readInt();

	// NO_ENTRY_VALUE
	no_entry_value = in.readFloat();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TIntFloatHash.java

示例9: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readLong();

	// NO_ENTRY_VALUE
	no_entry_value = in.readFloat();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TLongFloatHash.java

示例10: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readFloat();

	// NO_ENTRY_VALUE
	no_entry_value = in.readShort();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TFloatShortHash.java

示例11: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readByte();

	// NO_ENTRY_VALUE
	no_entry_value = in.readFloat();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TByteFloatHash.java

示例12: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readFloat();

	// NO_ENTRY_VALUE
	no_entry_value = in.readLong();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:15,代码来源:TFloatLongHash.java

示例13: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readFloat();

	// NO_ENTRY_VALUE
	no_entry_value = in.readChar();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TFloatCharHash.java

示例14: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
@Override
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
	iId = in.readLong();
	if (iId < 0) iId = null;
	iAbbreviation = (String)in.readObject();
	iText = (String)in.readObject();
	iMin = in.readFloat();
	iMax = in.readFloat();
}
 
开发者ID:Jenner4S,项目名称:unitimes,代码行数:10,代码来源:XCredit.java

示例15: readExternal

import java.io.ObjectInput; //导入方法依赖的package包/类
/** {@inheritDoc} */
public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException {
    // VERSION
	in.readByte();

    // SUPER
	super.readExternal( in );

	// NO_ENTRY_KEY
	no_entry_key = in.readFloat();

	// NO_ENTRY_VALUE
	no_entry_value = in.readInt();
}
 
开发者ID:funkemunky,项目名称:HCFCore,代码行数:15,代码来源:TFloatIntHash.java


注:本文中的java.io.ObjectInput.readFloat方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。