Class ShadowRegion

java.lang.Object
org.robolectric.shadows.ShadowRegion

@Implements(android.graphics.Region.class) public class ShadowRegion extends Object
  • Field Details

    • nextId

      public static long nextId
  • Constructor Details

    • ShadowRegion

      public ShadowRegion()
  • Method Details

    • equals

      @Implementation public boolean equals(Object obj)
      The real Region.equals(Object) calls into native code, which is a no-op in Robolectric, and will always return false no matter what is compared. We can special-case some simple scenarios here.
      Overrides:
      equals in class Object
    • nativeConstructor

      @HiddenApi @Implementation protected static Number nativeConstructor()