Example usage for com.google.gson JsonPrimitive equals

List of usage examples for com.google.gson JsonPrimitive equals

Introduction

In this page you can find the example usage for com.google.gson JsonPrimitive equals.

Prototype

@Override
    public boolean equals(Object obj) 

Source Link

Usage

From source file:com.ls.util.internal.ObjectComparator.java

License:Open Source License

private static Object getDifferencesForPrimitives(JsonPrimitive origin, JsonPrimitive patched) {
    if (patched.equals(origin)) {
        return UNCHANGED;
    } else {//from  ww w . ja va  2s  .c  om
        return patched.toString();
    }
}