Examples of TDoubleObjectMap


Examples of gnu.trove.map.TDoubleObjectMap

    /** {@inheritDoc} */
    public boolean equals( Object other ) {
        if ( ! ( other instanceof TDoubleObjectMap ) ) {
            return false;
        }
        TDoubleObjectMap that = ( TDoubleObjectMap ) other;
        if ( that.size() != this.size() ) {
            return false;
        }
        try {
            TDoubleObjectIterator iter = this.iterator();
            while ( iter.hasNext() ) {
                iter.advance();
                double 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 ) {
View Full Code Here

Examples of gnu.trove.map.TDoubleObjectMap

    /** {@inheritDoc} */
    public boolean equals( Object other ) {
        if ( ! ( other instanceof TDoubleObjectMap ) ) {
            return false;
        }
        TDoubleObjectMap that = ( TDoubleObjectMap ) other;
        if ( that.size() != this.size() ) {
            return false;
        }
        try {
            TDoubleObjectIterator iter = this.iterator();
            while ( iter.hasNext() ) {
                iter.advance();
                double 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 ) {
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.