com.fasterxml.jackson.databind.PropertyName.java Source code

Java tutorial

Introduction

Here is the source code for com.fasterxml.jackson.databind.PropertyName.java

Source

package com.fasterxml.jackson.databind;

public class PropertyName {
    public static final PropertyName NO_NAME = new PropertyName(new String("#disabled"), null);
    public static final PropertyName USE_DEFAULT = new PropertyName("", null);
    protected final String _namespace;
    protected final String _simpleName;

    public PropertyName(String paramString) {
        this(paramString, null);
    }

    public PropertyName(String paramString1, String paramString2) {
        if (paramString1 == null)
            paramString1 = "";
        this._simpleName = paramString1;
        this._namespace = paramString2;
    }

    public boolean equals(Object paramObject) {
        boolean bool1 = true;
        boolean bool2;
        if (paramObject == this)
            bool2 = bool1;
        String str;
        do {
            Class localClass;
            do {
                do {
                    return bool2;
                    bool2 = false;
                } while (paramObject == null);
                localClass = paramObject.getClass();
                bool2 = false;
            } while (localClass != PropertyName.class);
            if (USE_DEFAULT == paramObject) {
                if (this == USE_DEFAULT)
                    ;
                while (true) {
                    return bool1;
                    bool1 = false;
                }
            }
            if (this._simpleName != null)
                break;
            str = this._simpleName;
            bool2 = false;
        } while (str != null);
        if (this._namespace == null) {
            if (this._namespace == null)
                ;
            while (true) {
                return bool1;
                if (this._simpleName.equals(this._simpleName))
                    break;
                return false;
                bool1 = false;
            }
        }
        return this._namespace.equals(this._namespace);
    }

    public String getSimpleName() {
        return this._simpleName;
    }

    public boolean hasSimpleName() {
        return this._simpleName.length() > 0;
    }

    public int hashCode() {
        if (this._namespace == null)
            return this._simpleName.hashCode();
        return this._namespace.hashCode() ^ this._simpleName.hashCode();
    }

    public String toString() {
        if (this._namespace == null)
            return this._simpleName;
        return "{" + this._namespace + "}" + this._simpleName;
    }
}

/* Location:           /Users/dantheman/src/fffffffffattttt/basis/classes_dex2jar.jar
 * Qualified Name:     com.fasterxml.jackson.databind.PropertyName
 * JD-Core Version:    0.6.2
 */