Refine search
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(this.size); for (int i = 0; i < this.size; i++) { out.writeShort(this.items[i]); } }
@Override public void safeValue(short key, int value) throws IOException { out.writeShort(key); out.writeInt(value); } });
@Override public void safeValue(short item, int count) throws IOException { out.writeShort(item); out.writeInt(count); } });
@Override public void safeValue(int key, short value) throws IOException { out.writeInt(key); out.writeShort(value); } });
@Override public void safeValue(short item, int count) throws IOException { out.writeShort(item); out.writeInt(count); } });
@Override public void safeValue(short key, int value) throws IOException { out.writeShort(key); out.writeInt(value); } });
@Override public void safeValue(int key, short value) throws IOException { out.writeInt(key); out.writeShort(value); } });
@Override public void safeValue(short key, int value) throws IOException { out.writeShort(key); out.writeInt(value); } });
@Override public void safeValue(short item, int count) throws IOException { out.writeShort(item); out.writeInt(count); } });
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(this.size); for (int i = 0; i < this.size; i++) { out.writeShort(this.items[i]); } }
@Override public void safeValue(int key, short value) throws IOException { out.writeInt(key); out.writeShort(value); } });
@Override public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(this.size); for (int i = 0; i < this.size; i++) { out.writeShort(this.items[i]); } }
public void value(short each, int occurrences) { try { out.writeShort(each); out.writeInt(occurrences); } catch (IOException e) { throw new RuntimeException(e); } } });
public void writeExternal( ObjectOutput out ) throws IOException { // VERSION out.writeByte( 0 ); // POSITION out.writeInt( _pos ); // NO_ENTRY_VALUE out.writeShort( no_entry_value ); // ENTRIES int len = _data.length; out.writeInt( len ); for( int i = 0; i < len; i++ ) { out.writeShort( _data[ i ] ); } }
public static void writeOrganizationalEntityList(List<OrganizationalEntity> list, ObjectOutput out) throws IOException { out.writeInt( list.size() ); for( OrganizationalEntity item : list ) { if ( item instanceof User ) { out.writeShort( 0 ); } else { out.writeShort( 1 ); } item.writeExternal( out ); } }
/** {@inheritDoc} */ public void writeExternal(ObjectOutput out) throws IOException { // VERSION out.writeByte( 0 ); // SUPER super.writeExternal( out ); // NUMBER OF ENTRIES out.writeInt( _size ); // ENTRIES for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { out.writeShort( _set[i] ); out.writeShort( _values[i] ); } } }
/** {@inheritDoc} */ public void writeExternal( ObjectOutput out ) throws IOException { // VERSION out.writeByte( 0 ); // SUPER super.writeExternal( out ); // NO_ENTRY_KEY out.writeInt( no_entry_key ); // NO_ENTRY_VALUE out.writeShort( no_entry_value ); }
/** {@inheritDoc} */ public void writeExternal( ObjectOutput out ) throws IOException { // VERSION out.writeByte( 0 ); // SUPER super.writeExternal( out ); // NO_ENTRY_KEY out.writeShort( no_entry_key ); // NO_ENTRY_VALUE out.writeInt( no_entry_value ); }
/** {@inheritDoc} */ public void writeExternal(ObjectOutput out) throws IOException { // VERSION out.writeByte( 0 ); // SUPER super.writeExternal( out ); // NUMBER OF ENTRIES out.writeInt( _size ); // ENTRIES for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { out.writeLong( _set[i] ); out.writeShort( _values[i] ); } } }
/** {@inheritDoc} */ public void writeExternal(ObjectOutput out) throws IOException { // VERSION out.writeByte( 0 ); // SUPER super.writeExternal( out ); // NUMBER OF ENTRIES out.writeInt( _size ); // ENTRIES for ( int i = _states.length; i-- > 0; ) { if ( _states[i] == FULL ) { out.writeShort( _set[i] ); out.writeLong( _values[i] ); } } }