@Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeLong(iOfferingId);
out.writeInt(iExpectations == null ? 0 : iExpectations.size());
if (iExpectations != null) {
for (Map.Entry<Long, Double> entry: iExpectations.entrySet()) {
out.writeLong(entry.getKey());
out.writeDouble(entry.getValue());
}
}
}
java类java.io.ObjectOutput的实例源码
XExpectations.java 文件源码
项目:unitimes
阅读 17
收藏 0
点赞 0
评论 0
DeveloperHtmlBrowserComponent.java 文件源码
项目:incubator-netbeans
阅读 20
收藏 0
点赞 0
评论 0
@Override
public void writeExternal (ObjectOutput out)
throws IOException {
out.writeBoolean (bComp.isStatusLineVisible ());
out.writeBoolean (bComp.isToolbarVisible ());
out.writeObject (bComp.getDocumentURL ());
}
TLongDoubleHash.java 文件源码
项目:xcc
阅读 18
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
public void writeExternal( ObjectOutput out ) throws IOException {
// VERSION
out.writeByte( 0 );
// SUPER
super.writeExternal( out );
// NO_ENTRY_KEY
out.writeLong( no_entry_key );
// NO_ENTRY_VALUE
out.writeDouble( no_entry_value );
}
TIntLinkedList.java 文件源码
项目:HCFCore
阅读 24
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
public void writeExternal(ObjectOutput out) throws IOException {
// VERSION
out.writeByte(0);
// NO_ENTRY_VALUE
out.writeInt(no_entry_value);
// ENTRIES
out.writeInt(size);
for (TIntIterator iterator = iterator(); iterator.hasNext();) {
int next = iterator.next();
out.writeInt(next);
}
}
IOUtils.java 文件源码
项目:VASSAL-src
阅读 25
收藏 0
点赞 0
评论 0
/**
* Close an {@link ObjectOutput} unconditionally. Equivalent to
* calling <code>o.close()</code> when <code>o</code> is nonnull.
* {@link IOException}s are swallowed, as there is generally
* nothing that can be done about exceptions on closing.
*
* @param o a (possibly <code>null</code>) <code>ObjectOutput</code>
*/
public static void closeQuietly(ObjectOutput o) {
if (o == null) return;
try {
o.close();
}
catch (IOException e) {
// ignore
}
}
TFloatListDecorator.java 文件源码
项目:xcc
阅读 24
收藏 0
点赞 0
评论 0
public void writeExternal( ObjectOutput out ) throws IOException {
// VERSION
out.writeByte(0);
// LIST
out.writeObject( list );
}
MeasureUnit.java 文件源码
项目:fitnotifications
阅读 82
收藏 0
点赞 0
评论 0
@Override
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0); // version
out.writeUTF(type);
out.writeUTF(subType);
out.writeShort(0); // allow for more data.
}
TCharByteHash.java 文件源码
项目:xcc
阅读 19
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
public void writeExternal( ObjectOutput out ) throws IOException {
// VERSION
out.writeByte( 0 );
// SUPER
super.writeExternal( out );
// NO_ENTRY_KEY
out.writeChar( no_entry_key );
// NO_ENTRY_VALUE
out.writeByte( no_entry_value );
}
TDoubleArrayStack.java 文件源码
项目:HCFCore
阅读 20
收藏 0
点赞 0
评论 0
public void writeExternal( ObjectOutput out ) throws IOException {
// VERSION
out.writeByte( 0 );
// LIST
out.writeObject( _list );
}
TDoubleDoubleHash.java 文件源码
项目:xcc
阅读 29
收藏 0
点赞 0
评论 0
/** {@inheritDoc} */
public void writeExternal( ObjectOutput out ) throws IOException {
// VERSION
out.writeByte( 0 );
// SUPER
super.writeExternal( out );
// NO_ENTRY_KEY
out.writeDouble( no_entry_key );
// NO_ENTRY_VALUE
out.writeDouble( no_entry_value );
}