com.fasterxml.jackson.databind.node.BooleanNode.java Source code

Java tutorial

Introduction

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

Source

package com.fasterxml.jackson.databind.node;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;

public final class BooleanNode extends ValueNode {
    public static final BooleanNode FALSE = new BooleanNode();
    public static final BooleanNode TRUE = new BooleanNode();

    public static BooleanNode getFalse() {
        return FALSE;
    }

    public static BooleanNode getTrue() {
        return TRUE;
    }

    public long asLong(long paramLong) {
        if (this == TRUE)
            return 1L;
        return 0L;
    }

    public String asText() {
        if (this == TRUE)
            return "true";
        return "false";
    }

    public boolean equals(Object paramObject) {
        return paramObject == this;
    }

    public final void serialize(JsonGenerator paramJsonGenerator, SerializerProvider paramSerializerProvider) {
        if (this == TRUE)
            ;
        for (boolean bool = true;; bool = false) {
            paramJsonGenerator.writeBoolean(bool);
            return;
        }
    }
}

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