]>
iEval git - unical.git/blob - JsonNull.java
56883369e9be65917aee2cefca5e951f01e84ad4
2 * Copyright (C) 2008 Google Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package com
.google
.gson
;
20 * A class representing a Json {@code null} value.
22 * @author Inderjeet Singh
26 public final class JsonNull
extends JsonElement
{
28 * singleton for JsonNull
32 public static final JsonNull INSTANCE
= new JsonNull();
35 * Creates a new JsonNull object.
36 * Deprecated since Gson version 1.8. Use {@link #INSTANCE} instead
49 * All instances of JsonNull have the same hash code since they are indistinguishable
52 public int hashCode() {
53 return JsonNull
.class.hashCode();
57 * All instances of JsonNull are the same
60 public boolean equals(Object other
) {
61 return this == other
|| other
instanceof JsonNull
;
This page took 0.042796 seconds and 3 git commands to generate.