Java 类gnu.trove.map.TShortObjectMap 实例源码

项目:xcc    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:xcc    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:trove-3.0.3    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
@Override
@SuppressWarnings("rawtypes")
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:trove-3.0.3    文件:TShortObjectMapDecorator.java   
@Override
@SuppressWarnings("unchecked")
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:easyrec_major    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:easyrec_major    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:recalot.com    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:recalot.com    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:easyrec-PoC    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:easyrec-PoC    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:easyrec    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TShortObjectMap ) ) {
        return false;
    }
    TShortObjectMap that = ( TShortObjectMap ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    try {
        TShortObjectIterator iter = this.iterator();
        while ( iter.hasNext() ) {
            iter.advance();
            short 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;
}
项目:easyrec    文件:TShortObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TShortObjectMap<V> ) in.readObject();
}
项目:xcc    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:trove-3.0.3    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
@Override
public void putAll( TShortObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:easyrec_major    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:recalot.com    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:easyrec-PoC    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:pre-cu    文件:AutoDeltaShortObjectMap.java   
public TShortObjectMap<V> getMap() {
    return container;
}
项目:pre-cu    文件:AutoDeltaShortStringMap.java   
public TShortObjectMap<String> getMap() {
    return container;
}
项目:easyrec    文件:TShortObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TShortObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:xcc    文件:TShortObjectHashMap.java   
/**
 * Creates a new <code>TShortObjectHashMap</code> that contains the entries
 * in the map passed to it.
 *
 * @param map the <tt>TShortObjectMap</tt> to be copied.
 */
public TShortObjectHashMap( TShortObjectMap<? extends V> map ) {
    this( map.size(), 0.5f, map.getNoEntryKey() );
    putAll( map );
}
项目:xcc    文件:TShortObjectMapDecorator.java   
/**
 * Creates a wrapper that decorates the specified primitive map.
 *
 * @param map the <tt>TShortObjectMap</tt> to wrap.
 */
public TShortObjectMapDecorator( TShortObjectMap<V> map ) {
    super();
    this._map = map;
}
项目:xcc    文件:TShortObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TShortObjectMap</tt> instance.
 */
public TShortObjectMap<V> getMap() {
    return _map;
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/**
 * Creates a new <code>TShortObjectHashMap</code> that contains the entries
 * in the map passed to it.
 *
 * @param map the <tt>TShortObjectMap</tt> to be copied.
 */
public TShortObjectHashMap( TShortObjectMap<? extends V> map ) {
    this( map.size(), 0.5f, map.getNoEntryKey() );
    putAll( map );
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
/**
 * Creates a wrapper that decorates the specified primitive map.
 *
 * @param map the <tt>TShortObjectMap</tt> to wrap.
 */
public TShortObjectMapDecorator( TShortObjectMap<V> map ) {
    super();
    this._map = map;
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TShortObjectMap</tt> instance.
 */
public TShortObjectMap<V> getMap() {
    return _map;
}
项目:HCFCore    文件:TShortObjectHashMap.java   
/**
 * Creates a new <code>TShortObjectHashMap</code> that contains the entries
 * in the map passed to it.
 *
 * @param map the <tt>TShortObjectMap</tt> to be copied.
 */
public TShortObjectHashMap( TShortObjectMap<? extends V> map ) {
    this( map.size(), 0.5f, map.getNoEntryKey() );
    putAll( map );
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
/**
 * Creates a wrapper that decorates the specified primitive map.
 *
 * @param map the <tt>TShortObjectMap</tt> to wrap.
 */
public TShortObjectMapDecorator( TShortObjectMap<V> map ) {
    super();
    this._map = map;
}
项目:HCFCore    文件:TShortObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TShortObjectMap</tt> instance.
 */
public TShortObjectMap<V> getMap() {
    return _map;
}
项目:trove-3.0.3    文件:TShortObjectHashMap.java   
/**
 * Creates a new <code>TShortObjectHashMap</code> that contains the entries
 * in the map passed to it.
 *
 * @param map the <tt>TShortObjectMap</tt> to be copied.
 */
public TShortObjectHashMap( TShortObjectMap<? extends V> map ) {
    this( map.size(), 0.5f, map.getNoEntryKey() );
    putAll( map );
}
项目:trove-3.0.3    文件:TShortObjectMapDecorator.java   
/**
 * Creates a wrapper that decorates the specified primitive map.
 *
 * @param map the <tt>TShortObjectMap</tt> to wrap.
 */
public TShortObjectMapDecorator( TShortObjectMap<V> map ) {
    super();
    this._map = map;
}
项目:trove-3.0.3    文件:TShortObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TShortObjectMap</tt> instance.
 */
public TShortObjectMap<V> getMap() {
    return _map;
}
项目:easyrec_major    文件:TShortObjectHashMap.java   
/**
 * Creates a new <code>TShortObjectHashMap</code> that contains the entries
 * in the map passed to it.
 *
 * @param map the <tt>TShortObjectMap</tt> to be copied.
 */
public TShortObjectHashMap( TShortObjectMap<V> map ) {
    this( map.size(), 0.5f, map.getNoEntryKey() );
    putAll( map );
}
项目:easyrec_major    文件:TShortObjectMapDecorator.java   
/**
 * Creates a wrapper that decorates the specified primitive map.
 *
 * @param map the <tt>TShortObjectMap</tt> to wrap.
 */
public TShortObjectMapDecorator( TShortObjectMap<V> map ) {
    super();
    this._map = map;
}