All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vladsch.boxed.json.BoxedJsInvalidLiteral Maven / Gradle / Ivy

There is a newer version: 0.5.34
Show newest version
package com.vladsch.boxed.json;

import org.jetbrains.annotations.NotNull;

import javax.json.JsonValue;

public abstract class BoxedJsInvalidLiteral implements BoxedJsValue {
    @NotNull public JsonValue jsonValue() {
        return JsonValue.NULL;
    }

    @Override
    public int hashCode() {
        return getBoxedValueType().hashCode();
    }

    @Override
    public String toString() {
        return getBoxedValueType().toString();
    }

    @Override
    public boolean equals(Object obj) {
        return obj instanceof BoxedJsValue && this.getBoxedValueType().equals(((BoxedJsValue) obj).getBoxedValueType());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy