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);
}