Package net.openhft.koloboke.collect.map

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

Related Classes of net.openhft.koloboke.collect.map.ByteShortMap

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.