Examples of TFloatByteMap


Examples of gnu.trove.map.TFloatByteMap

    @Override
    public boolean equals( Object other ) {
        if ( ! ( other instanceof TFloatByteMap ) ) {
            return false;
        }
        TFloatByteMap that = ( TFloatByteMap ) other;
        if ( that.size() != this.size() ) {
            return false;
        }
        byte[] values = _values;
        byte[] states = _states;
        byte this_no_entry_value = getNoEntryValue();
        byte that_no_entry_value = that.getNoEntryValue();
        for ( int i = values.length; i-- > 0; ) {
            if ( states[i] == FULL ) {
                float key = _set[i];
                byte that_value = that.get( key );
                byte this_value = values[i];
                if ( ( this_value != that_value ) &&
                     ( this_value != this_no_entry_value ) &&
                     ( that_value != that_no_entry_value ) ) {
                    return false;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.