Sha256: ce6e2b9142927196c18c36c9769e3a56e5e2fa0da1c47aa0f952689c0b7ce11f

Contents?: true

Size: 1009 Bytes

Versions: 164

Compression:

Stored size: 1009 Bytes

Contents

package sh.calaba.org.codehaus.jackson.sym;

/**
 * Specialized implementation of PName: can be used for short Strings
 * that consists of 5 to 8 bytes. Usually this means relatively short
 * ascii-only names.
 *<p>
 * The reason for such specialized classes is mostly space efficiency;
 * and to a lesser degree performance. Both are achieved for short
 * Strings by avoiding another level of indirection (via quad arrays)
 */
public final class Name2
    extends Name
{
    final int mQuad1;

    final int mQuad2;

    Name2(String name, int hash, int quad1, int quad2)
    {
        super(name, hash);
        mQuad1 = quad1;
        mQuad2 = quad2;
    }

    @Override
    public boolean equals(int quad) { return false; }

    @Override
    public boolean equals(int quad1, int quad2)
    {
        return (quad1 == mQuad1) && (quad2 == mQuad2);
    }

    @Override
    public boolean equals(int[] quads, int qlen)
    {
        return (qlen == 2 && quads[0] == mQuad1 && quads[1] == mQuad2);
    }
}

Version data entries

164 entries across 164 versions & 2 rubygems

Version Path
calabash-android-0.4.15.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.14 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.13 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.12 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.11 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.10.pre5 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.10.pre4 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.10.pre3 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.10.pre2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.10.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.9 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
testautoa-0.4.5 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.9.pre4 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.9.pre3 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.9.pre2 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.9.pre1 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.8 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.7.pre10 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.7.pre9 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java
calabash-android-0.4.7.pre8 test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java