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

项目:xcc    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:xcc    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:trove-3.0.3    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:trove-3.0.3    文件:TFloatObjectMapDecorator.java   
@Override
@SuppressWarnings("unchecked")
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:easyrec_major    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:easyrec_major    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:recalot.com    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:recalot.com    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:easyrec-PoC    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:easyrec-PoC    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:easyrec    文件:TFloatObjectHashMap.java   
/** {@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;
}
项目:easyrec    文件:TFloatObjectMapDecorator.java   
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // MAP
    //noinspection unchecked
    _map = ( TFloatObjectMap<V> ) in.readObject();
}
项目:xcc    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:trove-3.0.3    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
@Override
public void putAll( TFloatObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:easyrec_major    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:recalot.com    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<? extends V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:easyrec-PoC    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:pre-cu    文件:AutoDeltaFloatObjectMap.java   
public TFloatObjectMap<V> getMap() {
    return container;
}
项目:pre-cu    文件:AutoDeltaFloatStringMap.java   
public TFloatObjectMap<String> getMap() {
    return container;
}
项目:easyrec    文件:TFloatObjectHashMap.java   
/** {@inheritDoc} */
public void putAll( TFloatObjectMap<V> map ){
    map.forEachEntry( PUT_ALL_PROC );
}
项目:xcc    文件:TFloatObjectHashMap.java   
/**
 * 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 );
}
项目:xcc    文件:TFloatObjectMapDecorator.java   
/**
 * 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;
}
项目:xcc    文件:TFloatObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TFloatObjectMap</tt> instance.
 */
public TFloatObjectMap<V> getMap() {
    return _map;
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/**
 * 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 );
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
/**
 * 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;
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TFloatObjectMap</tt> instance.
 */
public TFloatObjectMap<V> getMap() {
    return _map;
}
项目:HCFCore    文件:TFloatObjectHashMap.java   
/**
 * 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 );
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
/**
 * 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;
}
项目:HCFCore    文件:TFloatObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TFloatObjectMap</tt> instance.
 */
public TFloatObjectMap<V> getMap() {
    return _map;
}
项目:trove-3.0.3    文件:TFloatObjectHashMap.java   
/**
 * 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 );
}
项目:trove-3.0.3    文件:TFloatObjectMapDecorator.java   
/**
 * 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;
}
项目:trove-3.0.3    文件:TFloatObjectMapDecorator.java   
/**
 * Returns a reference to the map wrapped by this decorator.
 *
 * @return the wrapped <tt>TFloatObjectMap</tt> instance.
 */
public TFloatObjectMap<V> getMap() {
    return _map;
}
项目:easyrec_major    文件:TFloatObjectHashMap.java   
/**
 * 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 );
}
项目:easyrec_major    文件:TFloatObjectMapDecorator.java   
/**
 * 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;
}