@Test public void testSetExtension() { DynamicLinkData data = genDynamicLinkData(); Bundle bundle = data.getExtensionBundle(); assertFalse(bundle.containsKey(KEY_TEST_STRING)); assertFalse(bundle.containsKey(KEY_TEST_INT)); addExtension(data); Bundle updatedBundle = data.getExtensionBundle(); assertNotNull(updatedBundle); assertEquals(TEST_STRING_VALUE, updatedBundle.getString(KEY_TEST_STRING, null)); assertEquals(TEST_INT_VALUE, updatedBundle.getInt(KEY_TEST_INT)); }
public Bundle getExtensionBundle() { return (extensionBundle == null) ? new Bundle() : extensionBundle; }
DynamicLinkData extends AbstractSafeParcelable { public Bundle getExtensionBundle() { return (extensionBundle == null) ? new Bundle() : extensionBundle; } }
DynamicLinkData extends AbstractSafeParcelable { public Bundle getExtensionBundle() { return (extensionBundle == null) ? new Bundle() : extensionBundle; } @SafeParcelable.Constructor  DynamicLinkData(
      @Param(id = 1) String dynamicLink,
      @Param(id = 2) String deepLink,
      @Param(id = 3) int minVersion,
      @Param(id = 4) long clickTimestamp,
      @Param(id = 5) Bundle extensions,
      @Param(id = 6) Uri redirectUrl); }
DynamicLinkData extends AbstractSafeParcelable { public Bundle getExtensionBundle() { return (extensionBundle == null) ? new Bundle() : extensionBundle; } @SafeParcelable.Constructor  DynamicLinkData(
      @Param(id = 1) String dynamicLink,
      @Param(id = 2) String deepLink,
      @Param(id = 3) int minVersion,
      @Param(id = 4) long clickTimestamp,
      @Param(id = 5) Bundle extensions,
      @Param(id = 6) Uri redirectUrl); String getDynamicLink(); void setDynamicLink(String dynamicLink); String getDeepLink(); void setDeepLink(String deepLink); int getMinVersion(); void setMinVersion(int minVersion); long getClickTimestamp(); void setClickTimestamp(long timestamp); Bundle getExtensionBundle(); void setRedirectUrl(Uri redirectUrl); Uri getRedirectUrl(); void setExtensionData(Bundle bundle); @SuppressWarnings("static-access") @Override void writeToParcel(Parcel dest, int flags); }
DynamicLinkData extends AbstractSafeParcelable { public Bundle getExtensionBundle() { return (extensionBundle == null) ? new Bundle() : extensionBundle; } @SafeParcelable.Constructor  DynamicLinkData(
      @Param(id = 1) String dynamicLink,
      @Param(id = 2) String deepLink,
      @Param(id = 3) int minVersion,
      @Param(id = 4) long clickTimestamp,
      @Param(id = 5) Bundle extensions,
      @Param(id = 6) Uri redirectUrl); String getDynamicLink(); void setDynamicLink(String dynamicLink); String getDeepLink(); void setDeepLink(String deepLink); int getMinVersion(); void setMinVersion(int minVersion); long getClickTimestamp(); void setClickTimestamp(long timestamp); Bundle getExtensionBundle(); void setRedirectUrl(Uri redirectUrl); Uri getRedirectUrl(); void setExtensionData(Bundle bundle); @SuppressWarnings("static-access") @Override void writeToParcel(Parcel dest, int flags); static final Creator<DynamicLinkData> CREATOR; }