Package libcore.util

Class Objects

java.lang.Object
libcore.util.Objects

public final class Objects
extends Object
  • Method Details

    • equal

      public static boolean equal​(Object a, Object b)
      Returns true if two possibly-null objects are equal.
    • hashCode

      public static int hashCode​(Object o)
    • toString

      public static String toString​(Object o)
      Returns a string reporting the value of each declared field, via reflection. Static and transient fields are automatically skipped. Produces output like "SimpleClassName[integer=1234,string="hello",character='c',intArray=[1,2,3]]".