Examples of ByteShortMap


Examples of com.gs.collections.api.map.primitive.ByteShortMap

        }
        if (!(obj instanceof ByteShortMap))
        {
            return false;
        }
        ByteShortMap map = (ByteShortMap) obj;
        if (map.size() != 1)
        {
            return false;
        }
        return map.containsKey(this.key1) && this.value1 == map.getOrThrow(this.key1);
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteShortMap

        }
        if (!(obj instanceof ByteShortMap))
        {
            return false;
        }
        ByteShortMap map = (ByteShortMap) obj;
        return map.isEmpty();
    }
View Full Code Here

Examples of com.gs.collections.api.map.primitive.ByteShortMap

        if (!(obj instanceof ByteShortMap))
        {
            return false;
        }

        ByteShortMap other = (ByteShortMap) obj;

        if (this.size() != other.size())
        {
            return false;
        }

        if (this.sentinelValues == null)
        {
            if (other.containsKey(EMPTY_KEY) || other.containsKey(REMOVED_KEY))
            {
                return false;
            }
        }
        else
        {
            if (this.sentinelValues.containsZeroKey && (!other.containsKey(EMPTY_KEY) || this.sentinelValues.zeroValue != other.getOrThrow(EMPTY_KEY)))
            {
                return false;
            }

            if (this.sentinelValues.containsOneKey && (!other.containsKey(REMOVED_KEY) || this.sentinelValues.oneValue != other.getOrThrow(REMOVED_KEY)))
            {
                return false;
            }
        }

        for (int i = 0; i < this.keys.length; i++)
        {
            byte key = this.keys[i];
            if (isNonSentinel(key) && (!other.containsKey(key) || this.values[i] != other.getOrThrow(key)))
            {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of net.openhft.koloboke.collect.map.ByteShortMap

    public static boolean containsAllEntries(final InternalByteShortMapOps/*<?>*/ map,
            Map<?, ?> another) {
        if ( map == another )
            throw new IllegalArgumentException();
        if (another instanceof ByteShortMap) {
            ByteShortMap m2 = (ByteShortMap) another;
            /* if obj key || obj value */
            if (
                // if obj key //
                    m2.keyEquivalence().equals(map.keyEquivalence())
                // endif //
                /* if obj key obj value */ && /* endif */
                // if obj value //
                    m2.valueEquivalence().equals(map.valueEquivalence())
                // endif //
            ) {
            /* endif */
                if (map.size() < m2.size())
                    return false;
                if (m2 instanceof InternalByteShortMapOps) {
                    //noinspection unchecked
                    return ((InternalByteShortMapOps) m2).allEntriesContainingIn(map);
                }
            /* if obj key || obj value */
            }
            // noinspection unchecked
            /* endif */
            return m2.forEachWhile(new
                   /*f*/ByteShortPredicate/**/() {
                @Override
                public boolean test(/* raw */byte a, /* raw */short b) {
                    return map.containsEntry(a, b);
                }
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.