Package gnu.trove.map

Examples of gnu.trove.map.TCharObjectMap


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


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

Related Classes of gnu.trove.map.TCharObjectMap

Copyright © 2018 www.massapicom. 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.