src_fm_fc_ms_ff
stringlengths
43
86.8k
target
stringlengths
20
276k
TrustedCertificateListOptions extends ListOptions { @Override public TrustedCertificateListOptions clone() { final TrustedCertificateListOptions opt = new TrustedCertificateListOptions(); opt.setOptions(this); return opt; } @Internal TrustedCertificateListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal TrustedCertificateListOptions(TrustedCertificateListOptions trustedCertificateListOptions); TrustedCertificateListOptions(); @Internal TrustedCertificateListOptions(String after, Filters filter); List<Filter> getValidFilters(); void addEqualToValidFilter(boolean filterByValid); @SuppressWarnings("unchecked") T equalToValid(boolean filterByValid); List<Filter> getNameFilters(); void addEqualToNameFilter(String filterByName); @SuppressWarnings("unchecked") T equalToName(String filterByName); List<Filter> getStatusFilters(); void addEqualToStatusFilter(TrustedCertificateStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(TrustedCertificateStatus filterByStatus); List<Filter> getDeviceExecutionModeFilters(); void addEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T equalToDeviceExecutionMode(int filterByDeviceExecutionMode); void addNotEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T notEqualToDeviceExecutionMode(int filterByDeviceExecutionMode); List<Filter> getIssuerFilters(); void addLikeIssuerFilter(String filterByIssuer); @SuppressWarnings("unchecked") T likeIssuer(String filterByIssuer); List<Filter> getServiceFilters(); void addEqualToServiceFilter(TrustedCertificateService filterByService); @SuppressWarnings("unchecked") T equalToService(TrustedCertificateService filterByService); List<Filter> getSubjectFilters(); void addLikeSubjectFilter(String filterBySubject); @SuppressWarnings("unchecked") T likeSubject(String filterBySubject); List<Filter> getEnrollmentModeFilters(); void addEqualToEnrollmentModeFilter(boolean filterByEnrollmentMode); @SuppressWarnings("unchecked") T equalToEnrollmentMode(boolean filterByEnrollmentMode); @Override String toString(); @Override TrustedCertificateListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_DEVICE_EXECUTION_MODE; static final String TAG_FILTER_BY_ENROLLMENT_MODE; static final String TAG_FILTER_BY_ISSUER; static final String TAG_FILTER_BY_NAME; static final String TAG_FILTER_BY_SERVICE; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_SUBJECT; static final String TAG_FILTER_BY_VALID; }
@SuppressWarnings("resource") @Test public void testClone() { try { TrustedCertificateListOptions trustedcertificatelistoptions1 = new TrustedCertificateListOptions(Integer.valueOf(-26), Long.valueOf(10), Order.getDefault(), "15e58cd7-7aa3-4234-9db6-cde260cba28d", null, null); TrustedCertificateListOptions trustedcertificatelistoptions2 = trustedcertificatelistoptions1.clone(); assertNotNull(trustedcertificatelistoptions1); assertNotNull(trustedcertificatelistoptions2); assertNotSame(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions2, trustedcertificatelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TrustedCertificateListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal TrustedCertificateListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal TrustedCertificateListOptions(TrustedCertificateListOptions trustedCertificateListOptions); TrustedCertificateListOptions(); @Internal TrustedCertificateListOptions(String after, Filters filter); List<Filter> getValidFilters(); void addEqualToValidFilter(boolean filterByValid); @SuppressWarnings("unchecked") T equalToValid(boolean filterByValid); List<Filter> getNameFilters(); void addEqualToNameFilter(String filterByName); @SuppressWarnings("unchecked") T equalToName(String filterByName); List<Filter> getStatusFilters(); void addEqualToStatusFilter(TrustedCertificateStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(TrustedCertificateStatus filterByStatus); List<Filter> getDeviceExecutionModeFilters(); void addEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T equalToDeviceExecutionMode(int filterByDeviceExecutionMode); void addNotEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T notEqualToDeviceExecutionMode(int filterByDeviceExecutionMode); List<Filter> getIssuerFilters(); void addLikeIssuerFilter(String filterByIssuer); @SuppressWarnings("unchecked") T likeIssuer(String filterByIssuer); List<Filter> getServiceFilters(); void addEqualToServiceFilter(TrustedCertificateService filterByService); @SuppressWarnings("unchecked") T equalToService(TrustedCertificateService filterByService); List<Filter> getSubjectFilters(); void addLikeSubjectFilter(String filterBySubject); @SuppressWarnings("unchecked") T likeSubject(String filterBySubject); List<Filter> getEnrollmentModeFilters(); void addEqualToEnrollmentModeFilter(boolean filterByEnrollmentMode); @SuppressWarnings("unchecked") T equalToEnrollmentMode(boolean filterByEnrollmentMode); @Override String toString(); @Override TrustedCertificateListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_DEVICE_EXECUTION_MODE; static final String TAG_FILTER_BY_ENROLLMENT_MODE; static final String TAG_FILTER_BY_ISSUER; static final String TAG_FILTER_BY_NAME; static final String TAG_FILTER_BY_SERVICE; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_SUBJECT; static final String TAG_FILTER_BY_VALID; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { TrustedCertificateListOptions trustedcertificatelistoptions1 = new TrustedCertificateListOptions(Integer.valueOf(102), Long.valueOf(60), Order.getDefault(), "4de497a9-e74b-4f21-b29a-98bc61163333", null, null); TrustedCertificateListOptions trustedcertificatelistoptions2 = new TrustedCertificateListOptions(Integer.valueOf(102), Long.valueOf(60), Order.getDefault(), "4de497a9-e74b-4f21-b29a-98bc61163333", null, null); assertNotNull(trustedcertificatelistoptions1); assertNotNull(trustedcertificatelistoptions2); assertNotSame(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions2.hashCode(), trustedcertificatelistoptions1.hashCode()); int hashCode = trustedcertificatelistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, trustedcertificatelistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
TrustedCertificateListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof TrustedCertificateListOptions)) { return false; } final TrustedCertificateListOptions other = (TrustedCertificateListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal TrustedCertificateListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal TrustedCertificateListOptions(TrustedCertificateListOptions trustedCertificateListOptions); TrustedCertificateListOptions(); @Internal TrustedCertificateListOptions(String after, Filters filter); List<Filter> getValidFilters(); void addEqualToValidFilter(boolean filterByValid); @SuppressWarnings("unchecked") T equalToValid(boolean filterByValid); List<Filter> getNameFilters(); void addEqualToNameFilter(String filterByName); @SuppressWarnings("unchecked") T equalToName(String filterByName); List<Filter> getStatusFilters(); void addEqualToStatusFilter(TrustedCertificateStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(TrustedCertificateStatus filterByStatus); List<Filter> getDeviceExecutionModeFilters(); void addEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T equalToDeviceExecutionMode(int filterByDeviceExecutionMode); void addNotEqualToDeviceExecutionModeFilter(int filterByDeviceExecutionMode); @SuppressWarnings("unchecked") T notEqualToDeviceExecutionMode(int filterByDeviceExecutionMode); List<Filter> getIssuerFilters(); void addLikeIssuerFilter(String filterByIssuer); @SuppressWarnings("unchecked") T likeIssuer(String filterByIssuer); List<Filter> getServiceFilters(); void addEqualToServiceFilter(TrustedCertificateService filterByService); @SuppressWarnings("unchecked") T equalToService(TrustedCertificateService filterByService); List<Filter> getSubjectFilters(); void addLikeSubjectFilter(String filterBySubject); @SuppressWarnings("unchecked") T likeSubject(String filterBySubject); List<Filter> getEnrollmentModeFilters(); void addEqualToEnrollmentModeFilter(boolean filterByEnrollmentMode); @SuppressWarnings("unchecked") T equalToEnrollmentMode(boolean filterByEnrollmentMode); @Override String toString(); @Override TrustedCertificateListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_DEVICE_EXECUTION_MODE; static final String TAG_FILTER_BY_ENROLLMENT_MODE; static final String TAG_FILTER_BY_ISSUER; static final String TAG_FILTER_BY_NAME; static final String TAG_FILTER_BY_SERVICE; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_SUBJECT; static final String TAG_FILTER_BY_VALID; }
@SuppressWarnings("resource") @Test public void testEquals() { try { TrustedCertificateListOptions trustedcertificatelistoptions1 = new TrustedCertificateListOptions(Integer.valueOf(-12), Long.valueOf(67), Order.getDefault(), "8c6cafbd-7aa0-4c85-b7f2-8fa1e15e9311", null, null); TrustedCertificateListOptions trustedcertificatelistoptions2 = new TrustedCertificateListOptions(Integer.valueOf(-12), Long.valueOf(67), Order.getDefault(), "8c6cafbd-7aa0-4c85-b7f2-8fa1e15e9311", null, null); TrustedCertificateListOptions trustedcertificatelistoptions3 = new TrustedCertificateListOptions(Integer.valueOf(-34), Long.valueOf(-25), Order.getDefault(), "ae5139b4-224a-43ba-a267-9045fa815029", null, null); assertNotNull(trustedcertificatelistoptions1); assertNotNull(trustedcertificatelistoptions2); assertNotNull(trustedcertificatelistoptions3); assertNotSame(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertNotSame(trustedcertificatelistoptions3, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions2, trustedcertificatelistoptions1); assertEquals(trustedcertificatelistoptions1, trustedcertificatelistoptions2); assertEquals(trustedcertificatelistoptions1, trustedcertificatelistoptions1); assertFalse(trustedcertificatelistoptions1.equals(null)); assertNotEquals(trustedcertificatelistoptions3, trustedcertificatelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
PreSharedKeyListOptions extends ListOptions { @Override public PreSharedKeyListOptions clone() { final PreSharedKeyListOptions opt = new PreSharedKeyListOptions(); opt.setOptions(this); return opt; } @Internal PreSharedKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PreSharedKeyListOptions(PreSharedKeyListOptions preSharedKeyListOptions); PreSharedKeyListOptions(); @Internal PreSharedKeyListOptions(String after, Filters filter); @Override String toString(); @Override PreSharedKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { PreSharedKeyListOptions presharedkeylistoptions1 = new PreSharedKeyListOptions(Integer.valueOf(46), Long.valueOf(-31), Order.getDefault(), "7d7d94bb-63a2-422b-aa73-d6dac53f13cb", null, null); PreSharedKeyListOptions presharedkeylistoptions2 = presharedkeylistoptions1.clone(); assertNotNull(presharedkeylistoptions1); assertNotNull(presharedkeylistoptions2); assertNotSame(presharedkeylistoptions2, presharedkeylistoptions1); assertEquals(presharedkeylistoptions2, presharedkeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
PreSharedKeyListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal PreSharedKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PreSharedKeyListOptions(PreSharedKeyListOptions preSharedKeyListOptions); PreSharedKeyListOptions(); @Internal PreSharedKeyListOptions(String after, Filters filter); @Override String toString(); @Override PreSharedKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { PreSharedKeyListOptions presharedkeylistoptions1 = new PreSharedKeyListOptions(Integer.valueOf(-77), Long.valueOf(-91), Order.getDefault(), "25769883-3a5a-45e7-8db4-28e644b43a60", null, null); PreSharedKeyListOptions presharedkeylistoptions2 = new PreSharedKeyListOptions(Integer.valueOf(-77), Long.valueOf(-91), Order.getDefault(), "25769883-3a5a-45e7-8db4-28e644b43a60", null, null); assertNotNull(presharedkeylistoptions1); assertNotNull(presharedkeylistoptions2); assertNotSame(presharedkeylistoptions2, presharedkeylistoptions1); assertEquals(presharedkeylistoptions2, presharedkeylistoptions1); assertEquals(presharedkeylistoptions2.hashCode(), presharedkeylistoptions1.hashCode()); int hashCode = presharedkeylistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, presharedkeylistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
PreSharedKeyListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof PreSharedKeyListOptions)) { return false; } final PreSharedKeyListOptions other = (PreSharedKeyListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal PreSharedKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PreSharedKeyListOptions(PreSharedKeyListOptions preSharedKeyListOptions); PreSharedKeyListOptions(); @Internal PreSharedKeyListOptions(String after, Filters filter); @Override String toString(); @Override PreSharedKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { PreSharedKeyListOptions presharedkeylistoptions1 = new PreSharedKeyListOptions(Integer.valueOf(62), Long.valueOf(-65), Order.getDefault(), "15c77751-457d-45e4-a4a8-d9b1c0a45121", null, null); PreSharedKeyListOptions presharedkeylistoptions2 = new PreSharedKeyListOptions(Integer.valueOf(62), Long.valueOf(-65), Order.getDefault(), "15c77751-457d-45e4-a4a8-d9b1c0a45121", null, null); PreSharedKeyListOptions presharedkeylistoptions3 = new PreSharedKeyListOptions(Integer.valueOf(-114), Long.valueOf(30), Order.getDefault(), "30e458ef-456e-4391-8967-d3c1b28ee0e3", null, null); assertNotNull(presharedkeylistoptions1); assertNotNull(presharedkeylistoptions2); assertNotNull(presharedkeylistoptions3); assertNotSame(presharedkeylistoptions2, presharedkeylistoptions1); assertNotSame(presharedkeylistoptions3, presharedkeylistoptions1); assertEquals(presharedkeylistoptions2, presharedkeylistoptions1); assertEquals(presharedkeylistoptions2, presharedkeylistoptions1); assertEquals(presharedkeylistoptions1, presharedkeylistoptions2); assertEquals(presharedkeylistoptions1, presharedkeylistoptions1); assertFalse(presharedkeylistoptions1.equals(null)); assertNotEquals(presharedkeylistoptions3, presharedkeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static byte[] toByteArray(Object obj) { if (obj == null) { return null; } if (obj instanceof String) { return ((String) obj).getBytes(StandardCharsets.UTF_8); } if (obj instanceof byte[]) { return ((byte[]) obj); } if (obj instanceof Base64) { return ((Base64) obj).getEncodedArray(); } return null; } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testToByteArrayConversion() { String encodedSource = "VGhpcyBpcyBhIHRlc3QgZm9yIGRlY29kaW5nIGJhc2U2NCBlbmNvZGVkIHN0cmluZ3M="; byte[] encodedByteArray = { 0x56, 0x47, 0x68, 0x70, 0x63, 0x79, 0x42, 0x70, 0x63, 0x79, 0x42, 0x68, 0x49, 0x48, 0x52, 0x6c, 0x63, 0x33, 0x51, 0x67, 0x5a, 0x6d, 0x39, 0x79, 0x49, 0x47, 0x52, 0x6c, 0x59, 0x32, 0x39, 0x6b, 0x61, 0x57, 0x35, 0x6e, 0x49, 0x47, 0x4a, 0x68, 0x63, 0x32, 0x55, 0x32, 0x4e, 0x43, 0x42, 0x6c, 0x62, 0x6d, 0x4e, 0x76, 0x5a, 0x47, 0x56, 0x6b, 0x49, 0x48, 0x4e, 0x30, 0x63, 0x6d, 0x6c, 0x75, 0x5a, 0x33, 0x4d, 0x3d }; String expectedDecodedValue = "This is a test for decoding base64 encoded strings"; byte[] expectedDecodedByteArray = { 0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73, 0x20, 0x61, 0x20, 0x74, 0x65, 0x73, 0x74, 0x20, 0x66, 0x6f, 0x72, 0x20, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x20, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x20, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x65, 0x64, 0x20, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73 }; assertArrayEquals(expectedDecodedByteArray, TranslationUtils.toByteArray(expectedDecodedValue)); assertArrayEquals(expectedDecodedByteArray, TranslationUtils.toByteArray(expectedDecodedByteArray)); assertArrayEquals(encodedByteArray, TranslationUtils.toByteArray(new Base64(expectedDecodedByteArray))); assertArrayEquals(encodedByteArray, TranslationUtils.toByteArray(Base64.decode(encodedSource))); }
SubtenantLightThemeColorDao extends AbstractSubtenantLightThemeColorDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantLightThemeColorDao clone() { try { return new SubtenantLightThemeColorDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantLightThemeColorDao(); SubtenantLightThemeColorDao(ApiClientWrapper client); SubtenantLightThemeColorDao(ConnectionOptions options); SubtenantLightThemeColorDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantLightThemeColorDao clone(); @Override @NotImplemented void delete(); @Override @NotImplemented void delete(SubtenantLightThemeColor modelToDelete); @Override @NotImplemented SubtenantLightThemeColor read(); @Override @NotImplemented SubtenantLightThemeColor update(); @Override @NotImplemented SubtenantLightThemeColor update(SubtenantLightThemeColor modelToUpdate); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantLightThemeColorDao subtenantlightthemecolordao1 = new SubtenantLightThemeColorDao(); SubtenantLightThemeColorDao subtenantlightthemecolordao2 = subtenantlightthemecolordao1.clone(); assertNotNull(subtenantlightthemecolordao1); assertNotNull(subtenantlightthemecolordao2); assertNotSame(subtenantlightthemecolordao2, subtenantlightthemecolordao1); assertEquals(subtenantlightthemecolordao2, subtenantlightthemecolordao1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeColorListDao extends AbstractModelListDao<LightThemeColor, LightThemeColorListOptions> implements ModelListDao<LightThemeColor, LightThemeColorListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public LightThemeColorListDao clone() { try { return new LightThemeColorListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } LightThemeColorListDao(); LightThemeColorListDao(ApiClientWrapper client); LightThemeColorListDao(ConnectionOptions options); LightThemeColorListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) LightThemeColorListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<LightThemeColorDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) LightThemeColorDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeColorListDao lightthemecolorlistdao1 = new LightThemeColorListDao(); LightThemeColorListDao lightthemecolorlistdao2 = lightthemecolorlistdao1.clone(); assertNotNull(lightthemecolorlistdao1); assertNotNull(lightthemecolorlistdao2); assertNotSame(lightthemecolorlistdao2, lightthemecolorlistdao1); assertEquals(lightthemecolorlistdao2, lightthemecolorlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeImageListOptions extends ListOptions { @Override public SubtenantDarkThemeImageListOptions clone() { final SubtenantDarkThemeImageListOptions opt = new SubtenantDarkThemeImageListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantDarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeImageListOptions(SubtenantDarkThemeImageListOptions subtenantDarkThemeImageListOptions); SubtenantDarkThemeImageListOptions(); @Internal SubtenantDarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions1 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(67), Long.valueOf(70), Order.getDefault(), "9ccbb436-c74e-440e-b595-bfd773a81e92", null, null); SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions2 = subtenantdarkthemeimagelistoptions1.clone(); assertNotNull(subtenantdarkthemeimagelistoptions1); assertNotNull(subtenantdarkthemeimagelistoptions2); assertNotSame(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeImageListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantDarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeImageListOptions(SubtenantDarkThemeImageListOptions subtenantDarkThemeImageListOptions); SubtenantDarkThemeImageListOptions(); @Internal SubtenantDarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions1 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(10), Long.valueOf(-27), Order.getDefault(), "1b0884d9-4bb9-4a6d-adb6-b77819885630", null, null); SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions2 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(10), Long.valueOf(-27), Order.getDefault(), "1b0884d9-4bb9-4a6d-adb6-b77819885630", null, null); assertNotNull(subtenantdarkthemeimagelistoptions1); assertNotNull(subtenantdarkthemeimagelistoptions2); assertNotSame(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions2.hashCode(), subtenantdarkthemeimagelistoptions1.hashCode()); int hashCode = subtenantdarkthemeimagelistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantdarkthemeimagelistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeImageListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantDarkThemeImageListOptions)) { return false; } final SubtenantDarkThemeImageListOptions other = (SubtenantDarkThemeImageListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantDarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeImageListOptions(SubtenantDarkThemeImageListOptions subtenantDarkThemeImageListOptions); SubtenantDarkThemeImageListOptions(); @Internal SubtenantDarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions1 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(109), Long.valueOf(114), Order.getDefault(), "7b022953-5c5a-4b9a-afe5-77e2507595cc", null, null); SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions2 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(109), Long.valueOf(114), Order.getDefault(), "7b022953-5c5a-4b9a-afe5-77e2507595cc", null, null); SubtenantDarkThemeImageListOptions subtenantdarkthemeimagelistoptions3 = new SubtenantDarkThemeImageListOptions(Integer.valueOf(-66), Long.valueOf(-40), Order.getDefault(), "e9d43b78-2ee7-45d4-985d-393bd6599ee4", null, null); assertNotNull(subtenantdarkthemeimagelistoptions1); assertNotNull(subtenantdarkthemeimagelistoptions2); assertNotNull(subtenantdarkthemeimagelistoptions3); assertNotSame(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertNotSame(subtenantdarkthemeimagelistoptions3, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions2, subtenantdarkthemeimagelistoptions1); assertEquals(subtenantdarkthemeimagelistoptions1, subtenantdarkthemeimagelistoptions2); assertEquals(subtenantdarkthemeimagelistoptions1, subtenantdarkthemeimagelistoptions1); assertFalse(subtenantdarkthemeimagelistoptions1.equals(null)); assertNotEquals(subtenantdarkthemeimagelistoptions3, subtenantdarkthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeImageListOptions extends ListOptions { @Override public SubtenantLightThemeImageListOptions clone() { final SubtenantLightThemeImageListOptions opt = new SubtenantLightThemeImageListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantLightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeImageListOptions(SubtenantLightThemeImageListOptions subtenantLightThemeImageListOptions); SubtenantLightThemeImageListOptions(); @Internal SubtenantLightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions1 = new SubtenantLightThemeImageListOptions(Integer.valueOf(117), Long.valueOf(-75), Order.getDefault(), "99d8ea69-16e7-4650-b19b-d45723d03ece", null, null); SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions2 = subtenantlightthemeimagelistoptions1.clone(); assertNotNull(subtenantlightthemeimagelistoptions1); assertNotNull(subtenantlightthemeimagelistoptions2); assertNotSame(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeImageListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantLightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeImageListOptions(SubtenantLightThemeImageListOptions subtenantLightThemeImageListOptions); SubtenantLightThemeImageListOptions(); @Internal SubtenantLightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions1 = new SubtenantLightThemeImageListOptions(Integer.valueOf(24), Long.valueOf(-118), Order.getDefault(), "8bad2fa8-163f-4c57-8959-f6ea27f501d2", null, null); SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions2 = new SubtenantLightThemeImageListOptions(Integer.valueOf(24), Long.valueOf(-118), Order.getDefault(), "8bad2fa8-163f-4c57-8959-f6ea27f501d2", null, null); assertNotNull(subtenantlightthemeimagelistoptions1); assertNotNull(subtenantlightthemeimagelistoptions2); assertNotSame(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions2.hashCode(), subtenantlightthemeimagelistoptions1.hashCode()); int hashCode = subtenantlightthemeimagelistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantlightthemeimagelistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeImageListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantLightThemeImageListOptions)) { return false; } final SubtenantLightThemeImageListOptions other = (SubtenantLightThemeImageListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantLightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeImageListOptions(SubtenantLightThemeImageListOptions subtenantLightThemeImageListOptions); SubtenantLightThemeImageListOptions(); @Internal SubtenantLightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions1 = new SubtenantLightThemeImageListOptions(Integer.valueOf(57), Long.valueOf(-24), Order.getDefault(), "364089fd-5c1c-41bc-a548-5481aed2bda9", null, null); SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions2 = new SubtenantLightThemeImageListOptions(Integer.valueOf(57), Long.valueOf(-24), Order.getDefault(), "364089fd-5c1c-41bc-a548-5481aed2bda9", null, null); SubtenantLightThemeImageListOptions subtenantlightthemeimagelistoptions3 = new SubtenantLightThemeImageListOptions(Integer.valueOf(105), Long.valueOf(-69), Order.getDefault(), "0c954604-2971-4833-8a17-34017ea68add", null, null); assertNotNull(subtenantlightthemeimagelistoptions1); assertNotNull(subtenantlightthemeimagelistoptions2); assertNotNull(subtenantlightthemeimagelistoptions3); assertNotSame(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertNotSame(subtenantlightthemeimagelistoptions3, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions2, subtenantlightthemeimagelistoptions1); assertEquals(subtenantlightthemeimagelistoptions1, subtenantlightthemeimagelistoptions2); assertEquals(subtenantlightthemeimagelistoptions1, subtenantlightthemeimagelistoptions1); assertFalse(subtenantlightthemeimagelistoptions1.equals(null)); assertNotEquals(subtenantlightthemeimagelistoptions3, subtenantlightthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeColorDao extends AbstractLightThemeColorDao { @Override @SuppressWarnings({ "resource", "unused" }) public LightThemeColorDao clone() { try { return new LightThemeColorDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } LightThemeColorDao(); LightThemeColorDao(ApiClientWrapper client); LightThemeColorDao(ConnectionOptions options); LightThemeColorDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) LightThemeColorDao clone(); @Override void delete(String id); @Override LightThemeColor read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeColorDao lightthemecolordao1 = new LightThemeColorDao(); LightThemeColorDao lightthemecolordao2 = lightthemecolordao1.clone(); assertNotNull(lightthemecolordao1); assertNotNull(lightthemecolordao2); assertNotSame(lightthemecolordao2, lightthemecolordao1); assertEquals(lightthemecolordao2, lightthemecolordao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeImageDao extends AbstractSubtenantLightThemeImageDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantLightThemeImageDao clone() { try { return new SubtenantLightThemeImageDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantLightThemeImageDao(); SubtenantLightThemeImageDao(ApiClientWrapper client); SubtenantLightThemeImageDao(ConnectionOptions options); SubtenantLightThemeImageDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantLightThemeImageDao clone(); @Override @NotImplemented SubtenantLightThemeImage update(); @Override @NotImplemented SubtenantLightThemeImage update(SubtenantLightThemeImage modelToUpdate); @Override @NotImplemented void delete(); @Override @NotImplemented void delete(SubtenantLightThemeImage modelToDelete); @Override @NotImplemented SubtenantLightThemeImage read(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantLightThemeImageDao subtenantlightthemeimagedao1 = new SubtenantLightThemeImageDao(); SubtenantLightThemeImageDao subtenantlightthemeimagedao2 = subtenantlightthemeimagedao1.clone(); assertNotNull(subtenantlightthemeimagedao1); assertNotNull(subtenantlightthemeimagedao2); assertNotSame(subtenantlightthemeimagedao2, subtenantlightthemeimagedao1); assertEquals(subtenantlightthemeimagedao2, subtenantlightthemeimagedao1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static Base64 toBase64(Object obj) { if (obj == null) { return null; } if (obj instanceof String) { return Base64.decode((String) obj); } if (obj instanceof byte[]) { return Base64.decode((byte[]) obj); } if (obj instanceof ByteBuffer) { return Base64.decode((ByteBuffer) obj); } return null; } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testToBase64Conversion() { byte[] encodedByteArray = { 0x56, 0x47, 0x68, 0x70, 0x63, 0x79, 0x42, 0x70, 0x63, 0x79, 0x42, 0x68, 0x49, 0x48, 0x52, 0x6c, 0x63, 0x33, 0x51, 0x67, 0x5a, 0x6d, 0x39, 0x79, 0x49, 0x47, 0x52, 0x6c, 0x59, 0x32, 0x39, 0x6b, 0x61, 0x57, 0x35, 0x6e, 0x49, 0x47, 0x4a, 0x68, 0x63, 0x32, 0x55, 0x32, 0x4e, 0x43, 0x42, 0x6c, 0x62, 0x6d, 0x4e, 0x76, 0x5a, 0x47, 0x56, 0x6b, 0x49, 0x48, 0x4e, 0x30, 0x63, 0x6d, 0x6c, 0x75, 0x5a, 0x33, 0x4d, 0x3d }; String encodedSource = "VGhpcyBpcyBhIHRlc3QgZm9yIGRlY29kaW5nIGJhc2U2NCBlbmNvZGVkIHN0cmluZ3M="; Base64 expected = new Base64("This is a test for decoding base64 encoded strings"); assertEquals(expected, TranslationUtils.toBase64(encodedByteArray)); assertEquals(expected, TranslationUtils.toBase64(encodedSource)); }
LightThemeImageListDao extends AbstractModelListDao<LightThemeImage, LightThemeImageListOptions> implements ModelListDao<LightThemeImage, LightThemeImageListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public LightThemeImageListDao clone() { try { return new LightThemeImageListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } LightThemeImageListDao(); LightThemeImageListDao(ApiClientWrapper client); LightThemeImageListDao(ConnectionOptions options); LightThemeImageListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) LightThemeImageListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<LightThemeImageDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) LightThemeImageDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeImageListDao lightthemeimagelistdao1 = new LightThemeImageListDao(); LightThemeImageListDao lightthemeimagelistdao2 = lightthemeimagelistdao1.clone(); assertNotNull(lightthemeimagelistdao1); assertNotNull(lightthemeimagelistdao2); assertNotSame(lightthemeimagelistdao2, lightthemeimagelistdao1); assertEquals(lightthemeimagelistdao2, lightthemeimagelistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeImageListDao extends AbstractModelListDao<DarkThemeImage, DarkThemeImageListOptions> implements ModelListDao<DarkThemeImage, DarkThemeImageListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public DarkThemeImageListDao clone() { try { return new DarkThemeImageListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } DarkThemeImageListDao(); DarkThemeImageListDao(ApiClientWrapper client); DarkThemeImageListDao(ConnectionOptions options); DarkThemeImageListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) DarkThemeImageListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<DarkThemeImageDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) DarkThemeImageDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeImageListDao darkthemeimagelistdao1 = new DarkThemeImageListDao(); DarkThemeImageListDao darkthemeimagelistdao2 = darkthemeimagelistdao1.clone(); assertNotNull(darkthemeimagelistdao1); assertNotNull(darkthemeimagelistdao2); assertNotSame(darkthemeimagelistdao2, darkthemeimagelistdao1); assertEquals(darkthemeimagelistdao2, darkthemeimagelistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeImageDao extends AbstractSubtenantDarkThemeImageDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantDarkThemeImageDao clone() { try { return new SubtenantDarkThemeImageDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantDarkThemeImageDao(); SubtenantDarkThemeImageDao(ApiClientWrapper client); SubtenantDarkThemeImageDao(ConnectionOptions options); SubtenantDarkThemeImageDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantDarkThemeImageDao clone(); @Override @NotImplemented SubtenantDarkThemeImage update(); @Override @NotImplemented SubtenantDarkThemeImage update(SubtenantDarkThemeImage modelToUpdate); @Override @NotImplemented void delete(); @Override @NotImplemented void delete(SubtenantDarkThemeImage modelToDelete); @Override @NotImplemented SubtenantDarkThemeImage read(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantDarkThemeImageDao subtenantdarkthemeimagedao1 = new SubtenantDarkThemeImageDao(); SubtenantDarkThemeImageDao subtenantdarkthemeimagedao2 = subtenantdarkthemeimagedao1.clone(); assertNotNull(subtenantdarkthemeimagedao1); assertNotNull(subtenantdarkthemeimagedao2); assertNotSame(subtenantdarkthemeimagedao2, subtenantdarkthemeimagedao1); assertEquals(subtenantdarkthemeimagedao2, subtenantdarkthemeimagedao1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeImageDao extends AbstractLightThemeImageDao { @Override @SuppressWarnings({ "resource", "unused" }) public LightThemeImageDao clone() { try { return new LightThemeImageDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } LightThemeImageDao(); LightThemeImageDao(ApiClientWrapper client); LightThemeImageDao(ConnectionOptions options); LightThemeImageDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) LightThemeImageDao clone(); @Override @NotImplemented LightThemeImage update(); @Override @NotImplemented LightThemeImage update(LightThemeImage modelToUpdate); @Override void delete(String id); @Override LightThemeImage read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeImageDao lightthemeimagedao1 = new LightThemeImageDao(); LightThemeImageDao lightthemeimagedao2 = lightthemeimagedao1.clone(); assertNotNull(lightthemeimagedao1); assertNotNull(lightthemeimagedao2); assertNotSame(lightthemeimagedao2, lightthemeimagedao1); assertEquals(lightthemeimagedao2, lightthemeimagedao1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeColorListOptions extends ListOptions { @Override public DarkThemeColorListOptions clone() { final DarkThemeColorListOptions opt = new DarkThemeColorListOptions(); opt.setOptions(this); return opt; } @Internal DarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeColorListOptions(DarkThemeColorListOptions darkThemeColorListOptions); DarkThemeColorListOptions(); @Internal DarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeColorListOptions darkthemecolorlistoptions1 = new DarkThemeColorListOptions(Integer.valueOf(117), Long.valueOf(-22), Order.getDefault(), "115103fc-9fcb-4357-83c9-761c19556a69", null, null); DarkThemeColorListOptions darkthemecolorlistoptions2 = darkthemecolorlistoptions1.clone(); assertNotNull(darkthemecolorlistoptions1); assertNotNull(darkthemecolorlistoptions2); assertNotSame(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions2, darkthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeColorListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal DarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeColorListOptions(DarkThemeColorListOptions darkThemeColorListOptions); DarkThemeColorListOptions(); @Internal DarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { DarkThemeColorListOptions darkthemecolorlistoptions1 = new DarkThemeColorListOptions(Integer.valueOf(54), Long.valueOf(33), Order.getDefault(), "8e09201d-2459-4d6d-ad4a-5e9fd9e79d9e", null, null); DarkThemeColorListOptions darkthemecolorlistoptions2 = new DarkThemeColorListOptions(Integer.valueOf(54), Long.valueOf(33), Order.getDefault(), "8e09201d-2459-4d6d-ad4a-5e9fd9e79d9e", null, null); assertNotNull(darkthemecolorlistoptions1); assertNotNull(darkthemecolorlistoptions2); assertNotSame(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions2.hashCode(), darkthemecolorlistoptions1.hashCode()); int hashCode = darkthemecolorlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, darkthemecolorlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeColorListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof DarkThemeColorListOptions)) { return false; } final DarkThemeColorListOptions other = (DarkThemeColorListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal DarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeColorListOptions(DarkThemeColorListOptions darkThemeColorListOptions); DarkThemeColorListOptions(); @Internal DarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { DarkThemeColorListOptions darkthemecolorlistoptions1 = new DarkThemeColorListOptions(Integer.valueOf(-45), Long.valueOf(121), Order.getDefault(), "866af6f2-a6f0-4ebb-9340-6dadd9e7a098", null, null); DarkThemeColorListOptions darkthemecolorlistoptions2 = new DarkThemeColorListOptions(Integer.valueOf(-45), Long.valueOf(121), Order.getDefault(), "866af6f2-a6f0-4ebb-9340-6dadd9e7a098", null, null); DarkThemeColorListOptions darkthemecolorlistoptions3 = new DarkThemeColorListOptions(Integer.valueOf(60), Long.valueOf(58), Order.getDefault(), "99ad924d-e4ff-4346-bdef-6500b176a1ca", null, null); assertNotNull(darkthemecolorlistoptions1); assertNotNull(darkthemecolorlistoptions2); assertNotNull(darkthemecolorlistoptions3); assertNotSame(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertNotSame(darkthemecolorlistoptions3, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions2, darkthemecolorlistoptions1); assertEquals(darkthemecolorlistoptions1, darkthemecolorlistoptions2); assertEquals(darkthemecolorlistoptions1, darkthemecolorlistoptions1); assertFalse(darkthemecolorlistoptions1.equals(null)); assertNotEquals(darkthemecolorlistoptions3, darkthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeColorListOptions extends ListOptions { @Override public SubtenantLightThemeColorListOptions clone() { final SubtenantLightThemeColorListOptions opt = new SubtenantLightThemeColorListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantLightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeColorListOptions(SubtenantLightThemeColorListOptions subtenantLightThemeColorListOptions); SubtenantLightThemeColorListOptions(); @Internal SubtenantLightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions1 = new SubtenantLightThemeColorListOptions(Integer.valueOf(106), Long.valueOf(25), Order.getDefault(), "fb967116-ebc9-434c-82dc-7a2c3efda67f", null, null); SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions2 = subtenantlightthemecolorlistoptions1.clone(); assertNotNull(subtenantlightthemecolorlistoptions1); assertNotNull(subtenantlightthemecolorlistoptions2); assertNotSame(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeColorListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantLightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeColorListOptions(SubtenantLightThemeColorListOptions subtenantLightThemeColorListOptions); SubtenantLightThemeColorListOptions(); @Internal SubtenantLightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions1 = new SubtenantLightThemeColorListOptions(Integer.valueOf(-98), Long.valueOf(89), Order.getDefault(), "8b98408d-6160-4dfd-acc1-67ce4914d62f", null, null); SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions2 = new SubtenantLightThemeColorListOptions(Integer.valueOf(-98), Long.valueOf(89), Order.getDefault(), "8b98408d-6160-4dfd-acc1-67ce4914d62f", null, null); assertNotNull(subtenantlightthemecolorlistoptions1); assertNotNull(subtenantlightthemecolorlistoptions2); assertNotSame(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions2.hashCode(), subtenantlightthemecolorlistoptions1.hashCode()); int hashCode = subtenantlightthemecolorlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantlightthemecolorlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantLightThemeColorListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantLightThemeColorListOptions)) { return false; } final SubtenantLightThemeColorListOptions other = (SubtenantLightThemeColorListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantLightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantLightThemeColorListOptions(SubtenantLightThemeColorListOptions subtenantLightThemeColorListOptions); SubtenantLightThemeColorListOptions(); @Internal SubtenantLightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantLightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions1 = new SubtenantLightThemeColorListOptions(Integer.valueOf(112), Long.valueOf(-60), Order.getDefault(), "8dc9ddcb-1c2f-4adb-9b06-68a74f942338", null, null); SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions2 = new SubtenantLightThemeColorListOptions(Integer.valueOf(112), Long.valueOf(-60), Order.getDefault(), "8dc9ddcb-1c2f-4adb-9b06-68a74f942338", null, null); SubtenantLightThemeColorListOptions subtenantlightthemecolorlistoptions3 = new SubtenantLightThemeColorListOptions(Integer.valueOf(-106), Long.valueOf(-79), Order.getDefault(), "f6ad052f-30de-4f4f-bff2-54b8254f58e5", null, null); assertNotNull(subtenantlightthemecolorlistoptions1); assertNotNull(subtenantlightthemecolorlistoptions2); assertNotNull(subtenantlightthemecolorlistoptions3); assertNotSame(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertNotSame(subtenantlightthemecolorlistoptions3, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions2, subtenantlightthemecolorlistoptions1); assertEquals(subtenantlightthemecolorlistoptions1, subtenantlightthemecolorlistoptions2); assertEquals(subtenantlightthemecolorlistoptions1, subtenantlightthemecolorlistoptions1); assertFalse(subtenantlightthemecolorlistoptions1.equals(null)); assertNotEquals(subtenantlightthemecolorlistoptions3, subtenantlightthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static synchronized Date convertRfc3339Timestamp(String timestamp) throws MbedCloudException { return convertTimestamp(timestamp, RFC3339_DATE_FORMAT); } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testConvertRFC3339TimestampStringDate() { assumeThat(Locale.getDefault(), is(Locale.UK)); String timestamp = "Fri, 11 Aug 2017 19:33:35 GMT"; Date now = new Date(); Date date = TranslationUtils.convertRfc3339Timestamp(timestamp, now); assertEquals(now, date); timestamp = "2017-08-11T19:33:35+0000"; Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); calendar.set(2017, 7, 11, 19, 33, 35); calendar.set(Calendar.MILLISECOND, 0); assertEquals(calendar.getTime(), TranslationUtils.convertRfc3339Timestamp(timestamp, now)); } @Test public void testConvertTimestampStringDate() { assumeThat(Locale.getDefault(), is(Locale.UK)); String timestamp = "2017-08-11T19:33:35+0000"; Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); calendar.set(2017, 7, 11, 19, 33, 35); calendar.set(Calendar.MILLISECOND, 0); try { assertEquals(calendar.getTime(), TranslationUtils.convertRfc3339Timestamp(timestamp)); } catch (MbedCloudException e) { fail(e.getMessage()); } }
SubtenantDarkThemeColorDao extends AbstractSubtenantDarkThemeColorDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantDarkThemeColorDao clone() { try { return new SubtenantDarkThemeColorDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantDarkThemeColorDao(); SubtenantDarkThemeColorDao(ApiClientWrapper client); SubtenantDarkThemeColorDao(ConnectionOptions options); SubtenantDarkThemeColorDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantDarkThemeColorDao clone(); @Override @NotImplemented void delete(); @Override @NotImplemented void delete(SubtenantDarkThemeColor modelToDelete); @Override @NotImplemented SubtenantDarkThemeColor read(); @Override @NotImplemented SubtenantDarkThemeColor update(); @Override @NotImplemented SubtenantDarkThemeColor update(SubtenantDarkThemeColor modelToUpdate); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantDarkThemeColorDao subtenantdarkthemecolordao1 = new SubtenantDarkThemeColorDao(); SubtenantDarkThemeColorDao subtenantdarkthemecolordao2 = subtenantdarkthemecolordao1.clone(); assertNotNull(subtenantdarkthemecolordao1); assertNotNull(subtenantdarkthemecolordao2); assertNotSame(subtenantdarkthemecolordao2, subtenantdarkthemecolordao1); assertEquals(subtenantdarkthemecolordao2, subtenantdarkthemecolordao1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeColorDao extends AbstractDarkThemeColorDao { @Override @SuppressWarnings({ "resource", "unused" }) public DarkThemeColorDao clone() { try { return new DarkThemeColorDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } DarkThemeColorDao(); DarkThemeColorDao(ApiClientWrapper client); DarkThemeColorDao(ConnectionOptions options); DarkThemeColorDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) DarkThemeColorDao clone(); @Override void delete(String id); @Override DarkThemeColor read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeColorDao darkthemecolordao1 = new DarkThemeColorDao(); DarkThemeColorDao darkthemecolordao2 = darkthemecolordao1.clone(); assertNotNull(darkthemecolordao1); assertNotNull(darkthemecolordao2); assertNotSame(darkthemecolordao2, darkthemecolordao1); assertEquals(darkthemecolordao2, darkthemecolordao1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeImageDao extends AbstractDarkThemeImageDao { @Override @SuppressWarnings({ "resource", "unused" }) public DarkThemeImageDao clone() { try { return new DarkThemeImageDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } DarkThemeImageDao(); DarkThemeImageDao(ApiClientWrapper client); DarkThemeImageDao(ConnectionOptions options); DarkThemeImageDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) DarkThemeImageDao clone(); @Override @NotImplemented DarkThemeImage update(); @Override @NotImplemented DarkThemeImage update(DarkThemeImage modelToUpdate); @Override void delete(String id); @Override DarkThemeImage read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeImageDao darkthemeimagedao1 = new DarkThemeImageDao(); DarkThemeImageDao darkthemeimagedao2 = darkthemeimagedao1.clone(); assertNotNull(darkthemeimagedao1); assertNotNull(darkthemeimagedao2); assertNotSame(darkthemeimagedao2, darkthemeimagedao1); assertEquals(darkthemeimagedao2, darkthemeimagedao1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeColorListOptions extends ListOptions { @Override public LightThemeColorListOptions clone() { final LightThemeColorListOptions opt = new LightThemeColorListOptions(); opt.setOptions(this); return opt; } @Internal LightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeColorListOptions(LightThemeColorListOptions lightThemeColorListOptions); LightThemeColorListOptions(); @Internal LightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeColorListOptions lightthemecolorlistoptions1 = new LightThemeColorListOptions(Integer.valueOf(-106), Long.valueOf(-16), Order.getDefault(), "dfd4f456-3350-41d8-a26d-47379f58b050", null, null); LightThemeColorListOptions lightthemecolorlistoptions2 = lightthemecolorlistoptions1.clone(); assertNotNull(lightthemecolorlistoptions1); assertNotNull(lightthemecolorlistoptions2); assertNotSame(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions2, lightthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeColorListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal LightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeColorListOptions(LightThemeColorListOptions lightThemeColorListOptions); LightThemeColorListOptions(); @Internal LightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { LightThemeColorListOptions lightthemecolorlistoptions1 = new LightThemeColorListOptions(Integer.valueOf(-124), Long.valueOf(-70), Order.getDefault(), "20240cfb-5178-4824-b701-e9aa650faa74", null, null); LightThemeColorListOptions lightthemecolorlistoptions2 = new LightThemeColorListOptions(Integer.valueOf(-124), Long.valueOf(-70), Order.getDefault(), "20240cfb-5178-4824-b701-e9aa650faa74", null, null); assertNotNull(lightthemecolorlistoptions1); assertNotNull(lightthemecolorlistoptions2); assertNotSame(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions2.hashCode(), lightthemecolorlistoptions1.hashCode()); int hashCode = lightthemecolorlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, lightthemecolorlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeColorListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof LightThemeColorListOptions)) { return false; } final LightThemeColorListOptions other = (LightThemeColorListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal LightThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeColorListOptions(LightThemeColorListOptions lightThemeColorListOptions); LightThemeColorListOptions(); @Internal LightThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { LightThemeColorListOptions lightthemecolorlistoptions1 = new LightThemeColorListOptions(Integer.valueOf(55), Long.valueOf(54), Order.getDefault(), "9f2ff365-c85c-48cb-9165-0dc875d58f3f", null, null); LightThemeColorListOptions lightthemecolorlistoptions2 = new LightThemeColorListOptions(Integer.valueOf(55), Long.valueOf(54), Order.getDefault(), "9f2ff365-c85c-48cb-9165-0dc875d58f3f", null, null); LightThemeColorListOptions lightthemecolorlistoptions3 = new LightThemeColorListOptions(Integer.valueOf(-120), Long.valueOf(59), Order.getDefault(), "b1b9ed32-470c-4f13-a8af-9616d6f053d2", null, null); assertNotNull(lightthemecolorlistoptions1); assertNotNull(lightthemecolorlistoptions2); assertNotNull(lightthemecolorlistoptions3); assertNotSame(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertNotSame(lightthemecolorlistoptions3, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions2, lightthemecolorlistoptions1); assertEquals(lightthemecolorlistoptions1, lightthemecolorlistoptions2); assertEquals(lightthemecolorlistoptions1, lightthemecolorlistoptions1); assertFalse(lightthemecolorlistoptions1.equals(null)); assertNotEquals(lightthemecolorlistoptions3, lightthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeImageListOptions extends ListOptions { @Override public DarkThemeImageListOptions clone() { final DarkThemeImageListOptions opt = new DarkThemeImageListOptions(); opt.setOptions(this); return opt; } @Internal DarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeImageListOptions(DarkThemeImageListOptions darkThemeImageListOptions); DarkThemeImageListOptions(); @Internal DarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeImageListOptions darkthemeimagelistoptions1 = new DarkThemeImageListOptions(Integer.valueOf(83), Long.valueOf(-47), Order.getDefault(), "48cfac6f-839a-473f-8758-d508923bf51a", null, null); DarkThemeImageListOptions darkthemeimagelistoptions2 = darkthemeimagelistoptions1.clone(); assertNotNull(darkthemeimagelistoptions1); assertNotNull(darkthemeimagelistoptions2); assertNotSame(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions2, darkthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeImageListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal DarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeImageListOptions(DarkThemeImageListOptions darkThemeImageListOptions); DarkThemeImageListOptions(); @Internal DarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { DarkThemeImageListOptions darkthemeimagelistoptions1 = new DarkThemeImageListOptions(Integer.valueOf(0), Long.valueOf(80), Order.getDefault(), "9932fffe-29c3-42ff-8483-e578b75847e1", null, null); DarkThemeImageListOptions darkthemeimagelistoptions2 = new DarkThemeImageListOptions(Integer.valueOf(0), Long.valueOf(80), Order.getDefault(), "9932fffe-29c3-42ff-8483-e578b75847e1", null, null); assertNotNull(darkthemeimagelistoptions1); assertNotNull(darkthemeimagelistoptions2); assertNotSame(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions2.hashCode(), darkthemeimagelistoptions1.hashCode()); int hashCode = darkthemeimagelistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, darkthemeimagelistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeImageListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof DarkThemeImageListOptions)) { return false; } final DarkThemeImageListOptions other = (DarkThemeImageListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal DarkThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal DarkThemeImageListOptions(DarkThemeImageListOptions darkThemeImageListOptions); DarkThemeImageListOptions(); @Internal DarkThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override DarkThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { DarkThemeImageListOptions darkthemeimagelistoptions1 = new DarkThemeImageListOptions(Integer.valueOf(46), Long.valueOf(3), Order.getDefault(), "85e99437-3b6d-479e-b531-ebab72bbf20f", null, null); DarkThemeImageListOptions darkthemeimagelistoptions2 = new DarkThemeImageListOptions(Integer.valueOf(46), Long.valueOf(3), Order.getDefault(), "85e99437-3b6d-479e-b531-ebab72bbf20f", null, null); DarkThemeImageListOptions darkthemeimagelistoptions3 = new DarkThemeImageListOptions(Integer.valueOf(-64), Long.valueOf(-103), Order.getDefault(), "5fad5c74-dd14-4f50-b6a5-d5033ab1ec6f", null, null); assertNotNull(darkthemeimagelistoptions1); assertNotNull(darkthemeimagelistoptions2); assertNotNull(darkthemeimagelistoptions3); assertNotSame(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertNotSame(darkthemeimagelistoptions3, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions2, darkthemeimagelistoptions1); assertEquals(darkthemeimagelistoptions1, darkthemeimagelistoptions2); assertEquals(darkthemeimagelistoptions1, darkthemeimagelistoptions1); assertFalse(darkthemeimagelistoptions1.equals(null)); assertNotEquals(darkthemeimagelistoptions3, darkthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeImageListOptions extends ListOptions { @Override public LightThemeImageListOptions clone() { final LightThemeImageListOptions opt = new LightThemeImageListOptions(); opt.setOptions(this); return opt; } @Internal LightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeImageListOptions(LightThemeImageListOptions lightThemeImageListOptions); LightThemeImageListOptions(); @Internal LightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { LightThemeImageListOptions lightthemeimagelistoptions1 = new LightThemeImageListOptions(Integer.valueOf(-37), Long.valueOf(-122), Order.getDefault(), "d8afcaaf-2d6d-486d-aacd-210c1e3694e4", null, null); LightThemeImageListOptions lightthemeimagelistoptions2 = lightthemeimagelistoptions1.clone(); assertNotNull(lightthemeimagelistoptions1); assertNotNull(lightthemeimagelistoptions2); assertNotSame(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions2, lightthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static synchronized Date convertTimestamp(String timestamp) throws MbedCloudException { return convertTimestamp(timestamp, DateFormat.getDateTimeInstance()); } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testConvertTimestampStringDateFormatDate() { assumeThat(Locale.getDefault(), is(Locale.UK)); String timestamp = "Fri, 11 Aug 2017 19:33:35 GMT"; Date now = new Date(); Date date = TranslationUtils.convertTimestamp(timestamp, new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z"), now); Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); calendar.set(2017, 7, 11, 19, 33, 35); calendar.set(Calendar.MILLISECOND, 0); assertEquals(calendar.getTime(), date); date = TranslationUtils.convertTimestamp("Fri 11 Aug 2017 19:33:35", new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z"), now); assertEquals(now, date); } @Test public final void testConvertTimestampStringDateFormat() { assumeThat(Locale.getDefault(), is(Locale.UK)); String timestamp = "Fri, 11 Aug 2017 19:33:35 GMT"; Date date = null; try { date = TranslationUtils.convertTimestamp(timestamp, new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z")); } catch (@SuppressWarnings("unused") Exception e) { fail("Could not convert date"); } Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); calendar.set(2017, 7, 11, 19, 33, 35); calendar.set(Calendar.MILLISECOND, 0); assertEquals(calendar.getTime(), date); }
LightThemeImageListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal LightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeImageListOptions(LightThemeImageListOptions lightThemeImageListOptions); LightThemeImageListOptions(); @Internal LightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { LightThemeImageListOptions lightthemeimagelistoptions1 = new LightThemeImageListOptions(Integer.valueOf(114), Long.valueOf(-108), Order.getDefault(), "6535f1da-8cb2-4169-aaee-8fcab42dd3e1", null, null); LightThemeImageListOptions lightthemeimagelistoptions2 = new LightThemeImageListOptions(Integer.valueOf(114), Long.valueOf(-108), Order.getDefault(), "6535f1da-8cb2-4169-aaee-8fcab42dd3e1", null, null); assertNotNull(lightthemeimagelistoptions1); assertNotNull(lightthemeimagelistoptions2); assertNotSame(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions2.hashCode(), lightthemeimagelistoptions1.hashCode()); int hashCode = lightthemeimagelistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, lightthemeimagelistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
LightThemeImageListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof LightThemeImageListOptions)) { return false; } final LightThemeImageListOptions other = (LightThemeImageListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal LightThemeImageListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal LightThemeImageListOptions(LightThemeImageListOptions lightThemeImageListOptions); LightThemeImageListOptions(); @Internal LightThemeImageListOptions(String after, Filters filter); @Override String toString(); @Override LightThemeImageListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { LightThemeImageListOptions lightthemeimagelistoptions1 = new LightThemeImageListOptions(Integer.valueOf(116), Long.valueOf(2), Order.getDefault(), "9390a0e9-4e11-4918-9db1-bbb6cbb88db2", null, null); LightThemeImageListOptions lightthemeimagelistoptions2 = new LightThemeImageListOptions(Integer.valueOf(116), Long.valueOf(2), Order.getDefault(), "9390a0e9-4e11-4918-9db1-bbb6cbb88db2", null, null); LightThemeImageListOptions lightthemeimagelistoptions3 = new LightThemeImageListOptions(Integer.valueOf(6), Long.valueOf(102), Order.getDefault(), "87daa01d-ac61-47db-a77c-84f6ef8265ca", null, null); assertNotNull(lightthemeimagelistoptions1); assertNotNull(lightthemeimagelistoptions2); assertNotNull(lightthemeimagelistoptions3); assertNotSame(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertNotSame(lightthemeimagelistoptions3, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions2, lightthemeimagelistoptions1); assertEquals(lightthemeimagelistoptions1, lightthemeimagelistoptions2); assertEquals(lightthemeimagelistoptions1, lightthemeimagelistoptions1); assertFalse(lightthemeimagelistoptions1.equals(null)); assertNotEquals(lightthemeimagelistoptions3, lightthemeimagelistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeColorListOptions extends ListOptions { @Override public SubtenantDarkThemeColorListOptions clone() { final SubtenantDarkThemeColorListOptions opt = new SubtenantDarkThemeColorListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantDarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeColorListOptions(SubtenantDarkThemeColorListOptions subtenantDarkThemeColorListOptions); SubtenantDarkThemeColorListOptions(); @Internal SubtenantDarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions1 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(103), Long.valueOf(-48), Order.getDefault(), "e07ff200-7815-4ca2-b9f7-9d235cf8ade3", null, null); SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions2 = subtenantdarkthemecolorlistoptions1.clone(); assertNotNull(subtenantdarkthemecolorlistoptions1); assertNotNull(subtenantdarkthemecolorlistoptions2); assertNotSame(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeColorListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantDarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeColorListOptions(SubtenantDarkThemeColorListOptions subtenantDarkThemeColorListOptions); SubtenantDarkThemeColorListOptions(); @Internal SubtenantDarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions1 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(-24), Long.valueOf(-24), Order.getDefault(), "3b5cfa46-27cc-46a5-a3b9-c1b317aaeafd", null, null); SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions2 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(-24), Long.valueOf(-24), Order.getDefault(), "3b5cfa46-27cc-46a5-a3b9-c1b317aaeafd", null, null); assertNotNull(subtenantdarkthemecolorlistoptions1); assertNotNull(subtenantdarkthemecolorlistoptions2); assertNotSame(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions2.hashCode(), subtenantdarkthemecolorlistoptions1.hashCode()); int hashCode = subtenantdarkthemecolorlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantdarkthemecolorlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantDarkThemeColorListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantDarkThemeColorListOptions)) { return false; } final SubtenantDarkThemeColorListOptions other = (SubtenantDarkThemeColorListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantDarkThemeColorListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantDarkThemeColorListOptions(SubtenantDarkThemeColorListOptions subtenantDarkThemeColorListOptions); SubtenantDarkThemeColorListOptions(); @Internal SubtenantDarkThemeColorListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantDarkThemeColorListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions1 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(-96), Long.valueOf(-92), Order.getDefault(), "ad02212d-11b8-49e6-9533-b54f4902a5c3", null, null); SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions2 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(-96), Long.valueOf(-92), Order.getDefault(), "ad02212d-11b8-49e6-9533-b54f4902a5c3", null, null); SubtenantDarkThemeColorListOptions subtenantdarkthemecolorlistoptions3 = new SubtenantDarkThemeColorListOptions(Integer.valueOf(55), Long.valueOf(-27), Order.getDefault(), "81973b2f-076f-40fb-9de0-6119b83ec9a2", null, null); assertNotNull(subtenantdarkthemecolorlistoptions1); assertNotNull(subtenantdarkthemecolorlistoptions2); assertNotNull(subtenantdarkthemecolorlistoptions3); assertNotSame(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertNotSame(subtenantdarkthemecolorlistoptions3, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions2, subtenantdarkthemecolorlistoptions1); assertEquals(subtenantdarkthemecolorlistoptions1, subtenantdarkthemecolorlistoptions2); assertEquals(subtenantdarkthemecolorlistoptions1, subtenantdarkthemecolorlistoptions1); assertFalse(subtenantdarkthemecolorlistoptions1.equals(null)); assertNotEquals(subtenantdarkthemecolorlistoptions3, subtenantdarkthemecolorlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
DarkThemeColorListDao extends AbstractModelListDao<DarkThemeColor, DarkThemeColorListOptions> implements ModelListDao<DarkThemeColor, DarkThemeColorListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public DarkThemeColorListDao clone() { try { return new DarkThemeColorListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } DarkThemeColorListDao(); DarkThemeColorListDao(ApiClientWrapper client); DarkThemeColorListDao(ConnectionOptions options); DarkThemeColorListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) DarkThemeColorListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<DarkThemeColorDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) DarkThemeColorDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { DarkThemeColorListDao darkthemecolorlistdao1 = new DarkThemeColorListDao(); DarkThemeColorListDao darkthemecolorlistdao2 = darkthemecolorlistdao1.clone(); assertNotNull(darkthemecolorlistdao1); assertNotNull(darkthemecolorlistdao2); assertNotSame(darkthemecolorlistdao2, darkthemecolorlistdao1); assertEquals(darkthemecolorlistdao2, darkthemecolorlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
IdentityProviderListDao extends AbstractModelListDao<IdentityProvider, IdentityProviderListOptions> implements ModelListDao<IdentityProvider, IdentityProviderListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public IdentityProviderListDao clone() { try { return new IdentityProviderListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } IdentityProviderListDao(); IdentityProviderListDao(ApiClientWrapper client); IdentityProviderListDao(ConnectionOptions options); IdentityProviderListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) IdentityProviderListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<IdentityProviderDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) IdentityProviderDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { IdentityProviderListDao identityproviderlistdao1 = new IdentityProviderListDao(); IdentityProviderListDao identityproviderlistdao2 = identityproviderlistdao1.clone(); assertNotNull(identityproviderlistdao1); assertNotNull(identityproviderlistdao2); assertNotSame(identityproviderlistdao2, identityproviderlistdao1); assertEquals(identityproviderlistdao2, identityproviderlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
IdentityProviderDao extends AbstractModelDao<IdentityProvider> implements CrudDao<IdentityProvider> { @Override @SuppressWarnings({ "resource", "unused" }) public IdentityProviderDao clone() { try { return new IdentityProviderDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } IdentityProviderDao(); IdentityProviderDao(ApiClientWrapper client); IdentityProviderDao(ConnectionOptions options); IdentityProviderDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) IdentityProviderDao clone(); @Override IdentityProvider create(); @Override IdentityProvider create(@NonNull IdentityProvider identityProvider); IdentityProvider create(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes); IdentityProvider create(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes, @NonNull IdentityProvider identityProvider); @Override void delete(); @Override void delete(@NonNull IdentityProvider identityProvider); @Override void delete(@NonNull String id); IdentityProvider deleteServiceProviderCertificate(); IdentityProvider deleteServiceProviderCertificate(@NonNull IdentityProvider identityProvider); IdentityProvider deleteServiceProviderCertificate(@NonNull String id); IdentityProvider generateServiceProviderCertificate(); IdentityProvider generateServiceProviderCertificate(@Nullable IdentityProviderAlgorithm algorithm, @Nullable int validity); IdentityProvider generateServiceProviderCertificate(@Nullable IdentityProviderAlgorithm algorithm, @Nullable int validity, @NonNull IdentityProvider identityProvider); IdentityProvider generateServiceProviderCertificate(@Nullable IdentityProviderAlgorithm algorithm, @Nullable int validity, @NonNull String id); IdentityProvider generateServiceProviderCertificate(@Nullable IdentityProviderAlgorithm algorithm, @Nullable int validity, @NonNull String id, @NonNull IdentityProvider identityProvider); IdentityProvider generateServiceProviderCertificate(@NonNull IdentityProvider identityProvider); IdentityProvider generateServiceProviderCertificate(@NonNull String id); IdentityProvider generateServiceProviderCertificate(@NonNull String id, @NonNull IdentityProvider identityProvider); @Override IdentityProvider read(); IdentityProvider read(@NonNull IdentityProvider identityProvider); @Override IdentityProvider read(@NonNull String id); IdentityProvider refreshTokens(); IdentityProvider refreshTokens(@NonNull IdentityProvider identityProvider); IdentityProvider refreshTokens(@NonNull String id); @Override IdentityProvider update(); @Override IdentityProvider update(@NonNull IdentityProvider identityProvider); IdentityProvider update(@NonNull String id); IdentityProvider update(@NonNull String id, @NonNull IdentityProvider identityProvider); IdentityProvider update(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes); IdentityProvider update(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes, @NonNull IdentityProvider identityProvider); IdentityProvider update(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes, @NonNull String id); IdentityProvider update(@Nullable boolean discovery, @Nullable OidcRequest oidcAttributes, @NonNull String id, @NonNull IdentityProvider identityProvider); }
@SuppressWarnings("resource") @Test public void testClone() { try { IdentityProviderDao identityproviderdao1 = new IdentityProviderDao(); IdentityProviderDao identityproviderdao2 = identityproviderdao1.clone(); assertNotNull(identityproviderdao1); assertNotNull(identityproviderdao2); assertNotSame(identityproviderdao2, identityproviderdao1); assertEquals(identityproviderdao2, identityproviderdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
PolicyGroupListOptions extends ListOptions { @Override public PolicyGroupListOptions clone() { final PolicyGroupListOptions opt = new PolicyGroupListOptions(); opt.setOptions(this); return opt; } @Internal PolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PolicyGroupListOptions(PolicyGroupListOptions policyGroupListOptions); PolicyGroupListOptions(); @Internal PolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override PolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { PolicyGroupListOptions policygrouplistoptions1 = new PolicyGroupListOptions(Integer.valueOf(-78), Long.valueOf(42), Order.getDefault(), "c7115cf9-bcb1-4052-8d94-756b560f1697", null, null); PolicyGroupListOptions policygrouplistoptions2 = policygrouplistoptions1.clone(); assertNotNull(policygrouplistoptions1); assertNotNull(policygrouplistoptions2); assertNotSame(policygrouplistoptions2, policygrouplistoptions1); assertEquals(policygrouplistoptions2, policygrouplistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
PolicyGroupListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal PolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PolicyGroupListOptions(PolicyGroupListOptions policyGroupListOptions); PolicyGroupListOptions(); @Internal PolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override PolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { PolicyGroupListOptions policygrouplistoptions1 = new PolicyGroupListOptions(Integer.valueOf(30), Long.valueOf(7), Order.getDefault(), "b9eb75e4-50b3-4aba-86e7-ba3d0c2b91ac", null, null); PolicyGroupListOptions policygrouplistoptions2 = new PolicyGroupListOptions(Integer.valueOf(30), Long.valueOf(7), Order.getDefault(), "b9eb75e4-50b3-4aba-86e7-ba3d0c2b91ac", null, null); assertNotNull(policygrouplistoptions1); assertNotNull(policygrouplistoptions2); assertNotSame(policygrouplistoptions2, policygrouplistoptions1); assertEquals(policygrouplistoptions2, policygrouplistoptions1); assertEquals(policygrouplistoptions2.hashCode(), policygrouplistoptions1.hashCode()); int hashCode = policygrouplistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, policygrouplistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static URL toUrl(String url) { try { return url == null || url.isEmpty() ? null : new URL(url); } catch (MalformedURLException exception) { SdkLogger.getLogger().logError("Error occurred when parsing URL [" + url + "]. Defaulting to null", exception); } return null; } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testToUrl() { URL url = null; try { url = new URL("http: } catch (MalformedURLException e) { fail(e.getMessage()); } assertEquals(url, TranslationUtils.toUrl("http: assertEquals(null, TranslationUtils.toUrl("a+1")); }
PolicyGroupListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof PolicyGroupListOptions)) { return false; } final PolicyGroupListOptions other = (PolicyGroupListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal PolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal PolicyGroupListOptions(PolicyGroupListOptions policyGroupListOptions); PolicyGroupListOptions(); @Internal PolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override PolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { PolicyGroupListOptions policygrouplistoptions1 = new PolicyGroupListOptions(Integer.valueOf(-90), Long.valueOf(-34), Order.getDefault(), "2f1d891a-988e-4876-a38e-e82eec4ab763", null, null); PolicyGroupListOptions policygrouplistoptions2 = new PolicyGroupListOptions(Integer.valueOf(-90), Long.valueOf(-34), Order.getDefault(), "2f1d891a-988e-4876-a38e-e82eec4ab763", null, null); PolicyGroupListOptions policygrouplistoptions3 = new PolicyGroupListOptions(Integer.valueOf(-98), Long.valueOf(10), Order.getDefault(), "85a3d77a-0121-48d1-9dcd-c9d3fed54647", null, null); assertNotNull(policygrouplistoptions1); assertNotNull(policygrouplistoptions2); assertNotNull(policygrouplistoptions3); assertNotSame(policygrouplistoptions2, policygrouplistoptions1); assertNotSame(policygrouplistoptions3, policygrouplistoptions1); assertEquals(policygrouplistoptions2, policygrouplistoptions1); assertEquals(policygrouplistoptions2, policygrouplistoptions1); assertEquals(policygrouplistoptions1, policygrouplistoptions2); assertEquals(policygrouplistoptions1, policygrouplistoptions1); assertFalse(policygrouplistoptions1.equals(null)); assertNotEquals(policygrouplistoptions3, policygrouplistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
ApiKeyDao extends AbstractModelDao<ApiKey> implements CrudDao<ApiKey> { @Override @SuppressWarnings({ "resource", "unused" }) public ApiKeyDao clone() { try { return new ApiKeyDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } ApiKeyDao(); ApiKeyDao(ApiClientWrapper client); ApiKeyDao(ConnectionOptions options); ApiKeyDao(SdkContext sdkContext); Paginator<PolicyGroup> allPolicyGroups(@Nullable PolicyGroupListOptions options); Paginator<PolicyGroup> allPolicyGroups(@Nullable PolicyGroupListOptions options, @NonNull ApiKey apiKey); Paginator<PolicyGroup> allPolicyGroups(@NonNull String id, @Nullable PolicyGroupListOptions options); @Override @SuppressWarnings({ "resource", "unused" }) ApiKeyDao clone(); @Override ApiKey create(); @Override ApiKey create(@NonNull ApiKey apiKey); @Override void delete(); @Override void delete(@NonNull ApiKey apiKey); @Override void delete(@NonNull String id); @SuppressWarnings("PMD.ShortMethodName") ApiKey me(); ListResponse<PolicyGroup> policyGroups(@Nullable PolicyGroupListOptions options); ListResponse<PolicyGroup> policyGroups(@Nullable PolicyGroupListOptions options, @NonNull ApiKey apiKey); ListResponse<PolicyGroup> policyGroups(@NonNull String id, @Nullable PolicyGroupListOptions options); @Override ApiKey read(); ApiKey read(@NonNull ApiKey apiKey); @Override ApiKey read(@NonNull String id); @Override ApiKey update(); @Override ApiKey update(@NonNull ApiKey apiKey); ApiKey update(@NonNull String id); ApiKey update(@NonNull String id, @NonNull ApiKey apiKey); }
@SuppressWarnings("resource") @Test public void testClone() { try { ApiKeyDao apikeydao1 = new ApiKeyDao(); ApiKeyDao apikeydao2 = apikeydao1.clone(); assertNotNull(apikeydao1); assertNotNull(apikeydao2); assertNotSame(apikeydao2, apikeydao1); assertEquals(apikeydao2, apikeydao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserInvitationDao extends AbstractSubtenantUserInvitationDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantUserInvitationDao clone() { try { return new SubtenantUserInvitationDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantUserInvitationDao(); SubtenantUserInvitationDao(ApiClientWrapper client); SubtenantUserInvitationDao(ConnectionOptions options); SubtenantUserInvitationDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantUserInvitationDao clone(); @Override @NotImplemented void delete(String id); @Override @NotImplemented SubtenantUserInvitation read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantUserInvitationDao subtenantuserinvitationdao1 = new SubtenantUserInvitationDao(); SubtenantUserInvitationDao subtenantuserinvitationdao2 = subtenantuserinvitationdao1.clone(); assertNotNull(subtenantuserinvitationdao1); assertNotNull(subtenantuserinvitationdao2); assertNotSame(subtenantuserinvitationdao2, subtenantuserinvitationdao1); assertEquals(subtenantuserinvitationdao2, subtenantuserinvitationdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantPolicyGroupDao extends AbstractSubtenantPolicyGroupDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantPolicyGroupDao clone() { try { return new SubtenantPolicyGroupDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantPolicyGroupDao(); SubtenantPolicyGroupDao(ApiClientWrapper client); SubtenantPolicyGroupDao(ConnectionOptions options); SubtenantPolicyGroupDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantPolicyGroupDao clone(); @Override @NotImplemented SubtenantPolicyGroup read(String id); @Override void delete(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantPolicyGroupDao subtenantpolicygroupdao1 = new SubtenantPolicyGroupDao(); SubtenantPolicyGroupDao subtenantpolicygroupdao2 = subtenantpolicygroupdao1.clone(); assertNotNull(subtenantpolicygroupdao1); assertNotNull(subtenantpolicygroupdao2); assertNotSame(subtenantpolicygroupdao2, subtenantpolicygroupdao1); assertEquals(subtenantpolicygroupdao2, subtenantpolicygroupdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantPolicyGroupListOptions extends ListOptions { @Override public SubtenantPolicyGroupListOptions clone() { final SubtenantPolicyGroupListOptions opt = new SubtenantPolicyGroupListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantPolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantPolicyGroupListOptions(SubtenantPolicyGroupListOptions subtenantPolicyGroupListOptions); SubtenantPolicyGroupListOptions(); @Internal SubtenantPolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantPolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions1 = new SubtenantPolicyGroupListOptions(Integer.valueOf(-110), Long.valueOf(78), Order.getDefault(), "08618abe-660a-4e54-bad6-818ca0dfef42", null, null); SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions2 = subtenantpolicygrouplistoptions1.clone(); assertNotNull(subtenantpolicygrouplistoptions1); assertNotNull(subtenantpolicygrouplistoptions2); assertNotSame(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantPolicyGroupListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantPolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantPolicyGroupListOptions(SubtenantPolicyGroupListOptions subtenantPolicyGroupListOptions); SubtenantPolicyGroupListOptions(); @Internal SubtenantPolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantPolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions1 = new SubtenantPolicyGroupListOptions(Integer.valueOf(94), Long.valueOf(71), Order.getDefault(), "8dc5a82a-6167-4538-8ded-4ce5f9a7634b", null, null); SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions2 = new SubtenantPolicyGroupListOptions(Integer.valueOf(94), Long.valueOf(71), Order.getDefault(), "8dc5a82a-6167-4538-8ded-4ce5f9a7634b", null, null); assertNotNull(subtenantpolicygrouplistoptions1); assertNotNull(subtenantpolicygrouplistoptions2); assertNotSame(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions2.hashCode(), subtenantpolicygrouplistoptions1.hashCode()); int hashCode = subtenantpolicygrouplistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantpolicygrouplistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantPolicyGroupListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantPolicyGroupListOptions)) { return false; } final SubtenantPolicyGroupListOptions other = (SubtenantPolicyGroupListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantPolicyGroupListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantPolicyGroupListOptions(SubtenantPolicyGroupListOptions subtenantPolicyGroupListOptions); SubtenantPolicyGroupListOptions(); @Internal SubtenantPolicyGroupListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantPolicyGroupListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions1 = new SubtenantPolicyGroupListOptions(Integer.valueOf(-51), Long.valueOf(105), Order.getDefault(), "efc9e20d-db05-4f2f-b41f-016029d4faff", null, null); SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions2 = new SubtenantPolicyGroupListOptions(Integer.valueOf(-51), Long.valueOf(105), Order.getDefault(), "efc9e20d-db05-4f2f-b41f-016029d4faff", null, null); SubtenantPolicyGroupListOptions subtenantpolicygrouplistoptions3 = new SubtenantPolicyGroupListOptions(Integer.valueOf(101), Long.valueOf(87), Order.getDefault(), "99c3b952-8e9d-4dd1-9075-8be04a5e58e8", null, null); assertNotNull(subtenantpolicygrouplistoptions1); assertNotNull(subtenantpolicygrouplistoptions2); assertNotNull(subtenantpolicygrouplistoptions3); assertNotSame(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertNotSame(subtenantpolicygrouplistoptions3, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions2, subtenantpolicygrouplistoptions1); assertEquals(subtenantpolicygrouplistoptions1, subtenantpolicygrouplistoptions2); assertEquals(subtenantpolicygrouplistoptions1, subtenantpolicygrouplistoptions1); assertFalse(subtenantpolicygrouplistoptions1.equals(null)); assertNotEquals(subtenantpolicygrouplistoptions3, subtenantpolicygrouplistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserDao extends AbstractSubtenantUserDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantUserDao clone() { try { return new SubtenantUserDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantUserDao(); SubtenantUserDao(ApiClientWrapper client); SubtenantUserDao(ConnectionOptions options); SubtenantUserDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantUserDao clone(); @Override @NotImplemented void delete(String id); @Override @NotImplemented SubtenantUser read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantUserDao subtenantuserdao1 = new SubtenantUserDao(); SubtenantUserDao subtenantuserdao2 = subtenantuserdao1.clone(); assertNotNull(subtenantuserdao1); assertNotNull(subtenantuserdao2); assertNotSame(subtenantuserdao2, subtenantuserdao1); assertEquals(subtenantuserdao2, subtenantuserdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantApiKeyDao extends AbstractSubtenantApiKeyDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantApiKeyDao clone() { try { return new SubtenantApiKeyDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantApiKeyDao(); SubtenantApiKeyDao(ApiClientWrapper client); SubtenantApiKeyDao(ConnectionOptions options); SubtenantApiKeyDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantApiKeyDao clone(); @Override @NotImplemented void delete(String id); @Override @NotImplemented SubtenantApiKey read(String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantApiKeyDao subtenantapikeydao1 = new SubtenantApiKeyDao(); SubtenantApiKeyDao subtenantapikeydao2 = subtenantapikeydao1.clone(); assertNotNull(subtenantapikeydao1); assertNotNull(subtenantapikeydao2); assertNotSame(subtenantapikeydao2, subtenantapikeydao1); assertEquals(subtenantapikeydao2, subtenantapikeydao1); } catch (Exception exception) { fail(exception.getMessage()); } }
UserListOptions extends ListOptions { @Override public UserListOptions clone() { final UserListOptions opt = new UserListOptions(); opt.setOptions(this); return opt; } @Internal UserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserListOptions(UserListOptions userListOptions); UserListOptions(); @Internal UserListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); List<Filter> getStatusFilters(); void addEqualToStatusFilter(UserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(UserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<UserStatus> filterByStatus); void addInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(UserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<UserStatus> filterByStatus); void addNotInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(UserStatus... filterByStatus); List<Filter> getEmailFilters(); void addEqualToEmailFilter(String filterByEmail); @SuppressWarnings("unchecked") T equalToEmail(String filterByEmail); @Override String toString(); @Override UserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_EMAIL; static final String TAG_FILTER_BY_LOGIN_PROFILES; static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testClone() { try { UserListOptions userlistoptions1 = new UserListOptions(Integer.valueOf(-50), Long.valueOf(-8), Order.getDefault(), "04f83d7e-af2f-4448-ac8c-40247968b74e", null, null); UserListOptions userlistoptions2 = userlistoptions1.clone(); assertNotNull(userlistoptions1); assertNotNull(userlistoptions2); assertNotSame(userlistoptions2, userlistoptions1); assertEquals(userlistoptions2, userlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static String toString(Object obj) { return (obj == null) ? null : obj.toString(); } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testToStringURL() { URL url = null; try { url = new URL("http: } catch (MalformedURLException e) { fail(e.getMessage()); } assertEquals("http: }
UserListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal UserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserListOptions(UserListOptions userListOptions); UserListOptions(); @Internal UserListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); List<Filter> getStatusFilters(); void addEqualToStatusFilter(UserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(UserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<UserStatus> filterByStatus); void addInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(UserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<UserStatus> filterByStatus); void addNotInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(UserStatus... filterByStatus); List<Filter> getEmailFilters(); void addEqualToEmailFilter(String filterByEmail); @SuppressWarnings("unchecked") T equalToEmail(String filterByEmail); @Override String toString(); @Override UserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_EMAIL; static final String TAG_FILTER_BY_LOGIN_PROFILES; static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { UserListOptions userlistoptions1 = new UserListOptions(Integer.valueOf(63), Long.valueOf(-5), Order.getDefault(), "450f98d0-0dc3-410a-bec5-21b12dd5c4dc", null, null); UserListOptions userlistoptions2 = new UserListOptions(Integer.valueOf(63), Long.valueOf(-5), Order.getDefault(), "450f98d0-0dc3-410a-bec5-21b12dd5c4dc", null, null); assertNotNull(userlistoptions1); assertNotNull(userlistoptions2); assertNotSame(userlistoptions2, userlistoptions1); assertEquals(userlistoptions2, userlistoptions1); assertEquals(userlistoptions2.hashCode(), userlistoptions1.hashCode()); int hashCode = userlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, userlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
UserListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof UserListOptions)) { return false; } final UserListOptions other = (UserListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal UserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserListOptions(UserListOptions userListOptions); UserListOptions(); @Internal UserListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); List<Filter> getStatusFilters(); void addEqualToStatusFilter(UserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(UserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<UserStatus> filterByStatus); void addInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(UserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<UserStatus> filterByStatus); void addNotInStatusesFilter(UserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<UserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(UserStatus... filterByStatus); List<Filter> getEmailFilters(); void addEqualToEmailFilter(String filterByEmail); @SuppressWarnings("unchecked") T equalToEmail(String filterByEmail); @Override String toString(); @Override UserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_EMAIL; static final String TAG_FILTER_BY_LOGIN_PROFILES; static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testEquals() { try { UserListOptions userlistoptions1 = new UserListOptions(Integer.valueOf(-106), Long.valueOf(-14), Order.getDefault(), "cd6f8e52-5702-4f76-bd50-bde97305f83a", null, null); UserListOptions userlistoptions2 = new UserListOptions(Integer.valueOf(-106), Long.valueOf(-14), Order.getDefault(), "cd6f8e52-5702-4f76-bd50-bde97305f83a", null, null); UserListOptions userlistoptions3 = new UserListOptions(Integer.valueOf(55), Long.valueOf(-68), Order.getDefault(), "11b0edc1-aaa8-4f91-a10c-2ab7926245ea", null, null); assertNotNull(userlistoptions1); assertNotNull(userlistoptions2); assertNotNull(userlistoptions3); assertNotSame(userlistoptions2, userlistoptions1); assertNotSame(userlistoptions3, userlistoptions1); assertEquals(userlistoptions2, userlistoptions1); assertEquals(userlistoptions2, userlistoptions1); assertEquals(userlistoptions1, userlistoptions2); assertEquals(userlistoptions1, userlistoptions1); assertFalse(userlistoptions1.equals(null)); assertNotEquals(userlistoptions3, userlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
AccountListOptions extends ListOptions { @Override public AccountListOptions clone() { final AccountListOptions opt = new AccountListOptions(); opt.setOptions(this); return opt; } @Internal AccountListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal AccountListOptions(AccountListOptions accountListOptions); AccountListOptions(); @Internal AccountListOptions(String after, Filters filter); List<Filter> getTierFilters(); void addEqualToTierFilter(String filterByTier); @SuppressWarnings("unchecked") T equalToTier(String filterByTier); List<Filter> getStatusFilters(); void addEqualToStatusFilter(AccountStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(AccountStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<AccountStatus> filterByStatus); void addInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(AccountStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<AccountStatus> filterByStatus); void addNotInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(AccountStatus... filterByStatus); List<Filter> getEndMarketFilters(); void addEqualToEndMarketFilter(String filterByEndMarket); @SuppressWarnings("unchecked") T equalToEndMarket(String filterByEndMarket); List<Filter> getCountryFilters(); void addLikeCountryFilter(String filterByCountry); @SuppressWarnings("unchecked") T likeCountry(String filterByCountry); @Override String toString(); @Override AccountListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_COUNTRY; static final String TAG_FILTER_BY_END_MARKET; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_TIER; }
@SuppressWarnings("resource") @Test public void testClone() { try { AccountListOptions accountlistoptions1 = new AccountListOptions(Integer.valueOf(28), Long.valueOf(-60), Order.getDefault(), "378225d3-a485-4fb7-b500-7a64d201d0e2", null, null); AccountListOptions accountlistoptions2 = accountlistoptions1.clone(); assertNotNull(accountlistoptions1); assertNotNull(accountlistoptions2); assertNotSame(accountlistoptions2, accountlistoptions1); assertEquals(accountlistoptions2, accountlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
AccountListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal AccountListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal AccountListOptions(AccountListOptions accountListOptions); AccountListOptions(); @Internal AccountListOptions(String after, Filters filter); List<Filter> getTierFilters(); void addEqualToTierFilter(String filterByTier); @SuppressWarnings("unchecked") T equalToTier(String filterByTier); List<Filter> getStatusFilters(); void addEqualToStatusFilter(AccountStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(AccountStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<AccountStatus> filterByStatus); void addInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(AccountStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<AccountStatus> filterByStatus); void addNotInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(AccountStatus... filterByStatus); List<Filter> getEndMarketFilters(); void addEqualToEndMarketFilter(String filterByEndMarket); @SuppressWarnings("unchecked") T equalToEndMarket(String filterByEndMarket); List<Filter> getCountryFilters(); void addLikeCountryFilter(String filterByCountry); @SuppressWarnings("unchecked") T likeCountry(String filterByCountry); @Override String toString(); @Override AccountListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_COUNTRY; static final String TAG_FILTER_BY_END_MARKET; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_TIER; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { AccountListOptions accountlistoptions1 = new AccountListOptions(Integer.valueOf(-116), Long.valueOf(10), Order.getDefault(), "3001a1b4-f5b6-4d85-90aa-95b898610db9", null, null); AccountListOptions accountlistoptions2 = new AccountListOptions(Integer.valueOf(-116), Long.valueOf(10), Order.getDefault(), "3001a1b4-f5b6-4d85-90aa-95b898610db9", null, null); assertNotNull(accountlistoptions1); assertNotNull(accountlistoptions2); assertNotSame(accountlistoptions2, accountlistoptions1); assertEquals(accountlistoptions2, accountlistoptions1); assertEquals(accountlistoptions2.hashCode(), accountlistoptions1.hashCode()); int hashCode = accountlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, accountlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
AccountListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof AccountListOptions)) { return false; } final AccountListOptions other = (AccountListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal AccountListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal AccountListOptions(AccountListOptions accountListOptions); AccountListOptions(); @Internal AccountListOptions(String after, Filters filter); List<Filter> getTierFilters(); void addEqualToTierFilter(String filterByTier); @SuppressWarnings("unchecked") T equalToTier(String filterByTier); List<Filter> getStatusFilters(); void addEqualToStatusFilter(AccountStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(AccountStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<AccountStatus> filterByStatus); void addInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(AccountStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<AccountStatus> filterByStatus); void addNotInStatusesFilter(AccountStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<AccountStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(AccountStatus... filterByStatus); List<Filter> getEndMarketFilters(); void addEqualToEndMarketFilter(String filterByEndMarket); @SuppressWarnings("unchecked") T equalToEndMarket(String filterByEndMarket); List<Filter> getCountryFilters(); void addLikeCountryFilter(String filterByCountry); @SuppressWarnings("unchecked") T likeCountry(String filterByCountry); @Override String toString(); @Override AccountListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_COUNTRY; static final String TAG_FILTER_BY_END_MARKET; static final String TAG_FILTER_BY_STATUS; static final String TAG_FILTER_BY_TIER; }
@SuppressWarnings("resource") @Test public void testEquals() { try { AccountListOptions accountlistoptions1 = new AccountListOptions(Integer.valueOf(-27), Long.valueOf(-21), Order.getDefault(), "8432ac1c-4e0c-4f3e-8b29-979bde7e57d1", null, null); AccountListOptions accountlistoptions2 = new AccountListOptions(Integer.valueOf(-27), Long.valueOf(-21), Order.getDefault(), "8432ac1c-4e0c-4f3e-8b29-979bde7e57d1", null, null); AccountListOptions accountlistoptions3 = new AccountListOptions(Integer.valueOf(5), Long.valueOf(66), Order.getDefault(), "89227477-b45f-49e3-978d-00edd61ec04f", null, null); assertNotNull(accountlistoptions1); assertNotNull(accountlistoptions2); assertNotNull(accountlistoptions3); assertNotSame(accountlistoptions2, accountlistoptions1); assertNotSame(accountlistoptions3, accountlistoptions1); assertEquals(accountlistoptions2, accountlistoptions1); assertEquals(accountlistoptions2, accountlistoptions1); assertEquals(accountlistoptions1, accountlistoptions2); assertEquals(accountlistoptions1, accountlistoptions1); assertFalse(accountlistoptions1.equals(null)); assertNotEquals(accountlistoptions3, accountlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
UserInvitationDao extends AbstractModelDao<UserInvitation> implements CreateDao<UserInvitation>, DeleteDao<UserInvitation>, ReadDao<UserInvitation> { @Override @SuppressWarnings({ "resource", "unused" }) public UserInvitationDao clone() { try { return new UserInvitationDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } UserInvitationDao(); UserInvitationDao(ApiClientWrapper client); UserInvitationDao(ConnectionOptions options); UserInvitationDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) UserInvitationDao clone(); @Override UserInvitation create(); @Override UserInvitation create(@NonNull UserInvitation userInvitation); UserInvitation create(@Nullable @DefaultValue("30") int validForDays); UserInvitation create(@Nullable @DefaultValue("30") int validForDays, @NonNull UserInvitation userInvitation); @Override void delete(); @Override void delete(@NonNull UserInvitation userInvitation); @Override void delete(@NonNull String id); @Override UserInvitation read(); UserInvitation read(@NonNull UserInvitation userInvitation); @Override UserInvitation read(@NonNull String id); }
@SuppressWarnings("resource") @Test public void testClone() { try { UserInvitationDao userinvitationdao1 = new UserInvitationDao(); UserInvitationDao userinvitationdao2 = userinvitationdao1.clone(); assertNotNull(userinvitationdao1); assertNotNull(userinvitationdao2); assertNotSame(userinvitationdao2, userinvitationdao1); assertEquals(userinvitationdao2, userinvitationdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
UserInvitationListDao extends AbstractModelListDao<UserInvitation, UserInvitationListOptions> implements ModelListDao<UserInvitation, UserInvitationListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public UserInvitationListDao clone() { try { return new UserInvitationListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } UserInvitationListDao(); UserInvitationListDao(ApiClientWrapper client); UserInvitationListDao(ConnectionOptions options); UserInvitationListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) UserInvitationListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<UserInvitationDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) UserInvitationDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { UserInvitationListDao userinvitationlistdao1 = new UserInvitationListDao(); UserInvitationListDao userinvitationlistdao2 = userinvitationlistdao1.clone(); assertNotNull(userinvitationlistdao1); assertNotNull(userinvitationlistdao2); assertNotSame(userinvitationlistdao2, userinvitationlistdao1); assertEquals(userinvitationlistdao2, userinvitationlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
PolicyGroupListDao extends AbstractModelListDao<PolicyGroup, PolicyGroupListOptions> implements ModelListDao<PolicyGroup, PolicyGroupListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public PolicyGroupListDao clone() { try { return new PolicyGroupListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } PolicyGroupListDao(); PolicyGroupListDao(ApiClientWrapper client); PolicyGroupListDao(ConnectionOptions options); PolicyGroupListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) PolicyGroupListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<PolicyGroupDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) PolicyGroupDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { PolicyGroupListDao policygrouplistdao1 = new PolicyGroupListDao(); PolicyGroupListDao policygrouplistdao2 = policygrouplistdao1.clone(); assertNotNull(policygrouplistdao1); assertNotNull(policygrouplistdao2); assertNotSame(policygrouplistdao2, policygrouplistdao1); assertEquals(policygrouplistdao2, policygrouplistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserListOptions extends ListOptions { @Override public SubtenantUserListOptions clone() { final SubtenantUserListOptions opt = new SubtenantUserListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantUserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserListOptions(SubtenantUserListOptions subtenantUserListOptions); SubtenantUserListOptions(); @Internal SubtenantUserListOptions(String after, Filters filter); List<Filter> getStatusFilters(); void addEqualToStatusFilter(SubtenantUserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(SubtenantUserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(SubtenantUserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addNotInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(SubtenantUserStatus... filterByStatus); @Override String toString(); @Override SubtenantUserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantUserListOptions subtenantuserlistoptions1 = new SubtenantUserListOptions(Integer.valueOf(33), Long.valueOf(11), Order.getDefault(), "e9d8d145-3d87-4a2a-901f-80efc1f72bfd", null, null); SubtenantUserListOptions subtenantuserlistoptions2 = subtenantuserlistoptions1.clone(); assertNotNull(subtenantuserlistoptions1); assertNotNull(subtenantuserlistoptions2); assertNotSame(subtenantuserlistoptions2, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions2, subtenantuserlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantUserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserListOptions(SubtenantUserListOptions subtenantUserListOptions); SubtenantUserListOptions(); @Internal SubtenantUserListOptions(String after, Filters filter); List<Filter> getStatusFilters(); void addEqualToStatusFilter(SubtenantUserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(SubtenantUserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(SubtenantUserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addNotInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(SubtenantUserStatus... filterByStatus); @Override String toString(); @Override SubtenantUserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantUserListOptions subtenantuserlistoptions1 = new SubtenantUserListOptions(Integer.valueOf(77), Long.valueOf(-72), Order.getDefault(), "8b3c1c6e-dfbc-42c8-a27e-4063c4824f29", null, null); SubtenantUserListOptions subtenantuserlistoptions2 = new SubtenantUserListOptions(Integer.valueOf(77), Long.valueOf(-72), Order.getDefault(), "8b3c1c6e-dfbc-42c8-a27e-4063c4824f29", null, null); assertNotNull(subtenantuserlistoptions1); assertNotNull(subtenantuserlistoptions2); assertNotSame(subtenantuserlistoptions2, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions2, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions2.hashCode(), subtenantuserlistoptions1.hashCode()); int hashCode = subtenantuserlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantuserlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static int toInt(Number number) { return toInt(number, 0); } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testConvertToInteger() { assertEquals(1234, TranslationUtils.toInt(" 1234 ", 0)); assertEquals(0, TranslationUtils.toInt(" 1p234 ", 0)); }
SubtenantUserListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantUserListOptions)) { return false; } final SubtenantUserListOptions other = (SubtenantUserListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantUserListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserListOptions(SubtenantUserListOptions subtenantUserListOptions); SubtenantUserListOptions(); @Internal SubtenantUserListOptions(String after, Filters filter); List<Filter> getStatusFilters(); void addEqualToStatusFilter(SubtenantUserStatus filterByStatus); @SuppressWarnings("unchecked") T equalToStatus(SubtenantUserStatus filterByStatus); void addInStatusesFilter(String filterByStatus); void addInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T inStatuses(String filterByStatus); @SuppressWarnings("unchecked") T inStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T inStatuses(SubtenantUserStatus... filterByStatus); void addNotInStatusesFilter(String filterByStatus); void addNotInStatusesFilter(List<SubtenantUserStatus> filterByStatus); void addNotInStatusesFilter(SubtenantUserStatus... filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(String filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(List<SubtenantUserStatus> filterByStatus); @SuppressWarnings("unchecked") T notInStatuses(SubtenantUserStatus... filterByStatus); @Override String toString(); @Override SubtenantUserListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_STATUS; }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantUserListOptions subtenantuserlistoptions1 = new SubtenantUserListOptions(Integer.valueOf(-11), Long.valueOf(48), Order.getDefault(), "b31ca2fe-9fb2-46ee-992e-f83f7a66f85b", null, null); SubtenantUserListOptions subtenantuserlistoptions2 = new SubtenantUserListOptions(Integer.valueOf(-11), Long.valueOf(48), Order.getDefault(), "b31ca2fe-9fb2-46ee-992e-f83f7a66f85b", null, null); SubtenantUserListOptions subtenantuserlistoptions3 = new SubtenantUserListOptions(Integer.valueOf(7), Long.valueOf(-17), Order.getDefault(), "44906984-7063-425c-bc45-b94073fbedc2", null, null); assertNotNull(subtenantuserlistoptions1); assertNotNull(subtenantuserlistoptions2); assertNotNull(subtenantuserlistoptions3); assertNotSame(subtenantuserlistoptions2, subtenantuserlistoptions1); assertNotSame(subtenantuserlistoptions3, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions2, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions2, subtenantuserlistoptions1); assertEquals(subtenantuserlistoptions1, subtenantuserlistoptions2); assertEquals(subtenantuserlistoptions1, subtenantuserlistoptions1); assertFalse(subtenantuserlistoptions1.equals(null)); assertNotEquals(subtenantuserlistoptions3, subtenantuserlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserInvitationListOptions extends ListOptions { @Override public SubtenantUserInvitationListOptions clone() { final SubtenantUserInvitationListOptions opt = new SubtenantUserInvitationListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantUserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserInvitationListOptions(SubtenantUserInvitationListOptions subtenantUserInvitationListOptions); SubtenantUserInvitationListOptions(); @Internal SubtenantUserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override SubtenantUserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions1 = new SubtenantUserInvitationListOptions(Integer.valueOf(-6), Long.valueOf(92), Order.getDefault(), "102d8bcc-88af-4be9-8d0a-ca60bdf1bc69", null, null); SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions2 = subtenantuserinvitationlistoptions1.clone(); assertNotNull(subtenantuserinvitationlistoptions1); assertNotNull(subtenantuserinvitationlistoptions2); assertNotSame(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserInvitationListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantUserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserInvitationListOptions(SubtenantUserInvitationListOptions subtenantUserInvitationListOptions); SubtenantUserInvitationListOptions(); @Internal SubtenantUserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override SubtenantUserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions1 = new SubtenantUserInvitationListOptions(Integer.valueOf(72), Long.valueOf(-122), Order.getDefault(), "6b69709a-c23e-4178-aff4-f02b9e8ba7dd", null, null); SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions2 = new SubtenantUserInvitationListOptions(Integer.valueOf(72), Long.valueOf(-122), Order.getDefault(), "6b69709a-c23e-4178-aff4-f02b9e8ba7dd", null, null); assertNotNull(subtenantuserinvitationlistoptions1); assertNotNull(subtenantuserinvitationlistoptions2); assertNotSame(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions2.hashCode(), subtenantuserinvitationlistoptions1.hashCode()); int hashCode = subtenantuserinvitationlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantuserinvitationlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantUserInvitationListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantUserInvitationListOptions)) { return false; } final SubtenantUserInvitationListOptions other = (SubtenantUserInvitationListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantUserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantUserInvitationListOptions(SubtenantUserInvitationListOptions subtenantUserInvitationListOptions); SubtenantUserInvitationListOptions(); @Internal SubtenantUserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override SubtenantUserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions1 = new SubtenantUserInvitationListOptions(Integer.valueOf(24), Long.valueOf(-35), Order.getDefault(), "0f721c65-1647-42ab-82e0-2bbd8e977be9", null, null); SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions2 = new SubtenantUserInvitationListOptions(Integer.valueOf(24), Long.valueOf(-35), Order.getDefault(), "0f721c65-1647-42ab-82e0-2bbd8e977be9", null, null); SubtenantUserInvitationListOptions subtenantuserinvitationlistoptions3 = new SubtenantUserInvitationListOptions(Integer.valueOf(-65), Long.valueOf(-83), Order.getDefault(), "3033148c-2806-4f88-8c97-6292a8d9d66f", null, null); assertNotNull(subtenantuserinvitationlistoptions1); assertNotNull(subtenantuserinvitationlistoptions2); assertNotNull(subtenantuserinvitationlistoptions3); assertNotSame(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertNotSame(subtenantuserinvitationlistoptions3, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions2, subtenantuserinvitationlistoptions1); assertEquals(subtenantuserinvitationlistoptions1, subtenantuserinvitationlistoptions2); assertEquals(subtenantuserinvitationlistoptions1, subtenantuserinvitationlistoptions1); assertFalse(subtenantuserinvitationlistoptions1.equals(null)); assertNotEquals(subtenantuserinvitationlistoptions3, subtenantuserinvitationlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantApiKeyListOptions extends ListOptions { @Override public SubtenantApiKeyListOptions clone() { final SubtenantApiKeyListOptions opt = new SubtenantApiKeyListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantApiKeyListOptions(SubtenantApiKeyListOptions subtenantApiKeyListOptions); SubtenantApiKeyListOptions(); @Internal SubtenantApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantApiKeyListOptions subtenantapikeylistoptions1 = new SubtenantApiKeyListOptions(Integer.valueOf(100), Long.valueOf(114), Order.getDefault(), "50dd932a-2946-4e5d-a540-727eba3259da", null, null); SubtenantApiKeyListOptions subtenantapikeylistoptions2 = subtenantapikeylistoptions1.clone(); assertNotNull(subtenantapikeylistoptions1); assertNotNull(subtenantapikeylistoptions2); assertNotSame(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions2, subtenantapikeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantApiKeyListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantApiKeyListOptions(SubtenantApiKeyListOptions subtenantApiKeyListOptions); SubtenantApiKeyListOptions(); @Internal SubtenantApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantApiKeyListOptions subtenantapikeylistoptions1 = new SubtenantApiKeyListOptions(Integer.valueOf(-87), Long.valueOf(89), Order.getDefault(), "9437ef87-ccb2-4b9d-87e3-eebd2f755dd6", null, null); SubtenantApiKeyListOptions subtenantapikeylistoptions2 = new SubtenantApiKeyListOptions(Integer.valueOf(-87), Long.valueOf(89), Order.getDefault(), "9437ef87-ccb2-4b9d-87e3-eebd2f755dd6", null, null); assertNotNull(subtenantapikeylistoptions1); assertNotNull(subtenantapikeylistoptions2); assertNotSame(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions2.hashCode(), subtenantapikeylistoptions1.hashCode()); int hashCode = subtenantapikeylistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantapikeylistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantApiKeyListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantApiKeyListOptions)) { return false; } final SubtenantApiKeyListOptions other = (SubtenantApiKeyListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantApiKeyListOptions(SubtenantApiKeyListOptions subtenantApiKeyListOptions); SubtenantApiKeyListOptions(); @Internal SubtenantApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantApiKeyListOptions subtenantapikeylistoptions1 = new SubtenantApiKeyListOptions(Integer.valueOf(-62), Long.valueOf(33), Order.getDefault(), "d9f4119a-647e-47aa-9dab-f3ad8605cc9c", null, null); SubtenantApiKeyListOptions subtenantapikeylistoptions2 = new SubtenantApiKeyListOptions(Integer.valueOf(-62), Long.valueOf(33), Order.getDefault(), "d9f4119a-647e-47aa-9dab-f3ad8605cc9c", null, null); SubtenantApiKeyListOptions subtenantapikeylistoptions3 = new SubtenantApiKeyListOptions(Integer.valueOf(123), Long.valueOf(32), Order.getDefault(), "1cf7c00d-a478-48c5-9dc5-758125f981a1", null, null); assertNotNull(subtenantapikeylistoptions1); assertNotNull(subtenantapikeylistoptions2); assertNotNull(subtenantapikeylistoptions3); assertNotSame(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertNotSame(subtenantapikeylistoptions3, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions2, subtenantapikeylistoptions1); assertEquals(subtenantapikeylistoptions1, subtenantapikeylistoptions2); assertEquals(subtenantapikeylistoptions1, subtenantapikeylistoptions1); assertFalse(subtenantapikeylistoptions1.equals(null)); assertNotEquals(subtenantapikeylistoptions3, subtenantapikeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
ApiKeyListDao extends AbstractModelListDao<ApiKey, ApiKeyListOptions> implements ModelListDao<ApiKey, ApiKeyListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public ApiKeyListDao clone() { try { return new ApiKeyListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } ApiKeyListDao(); ApiKeyListDao(ApiClientWrapper client); ApiKeyListDao(ConnectionOptions options); ApiKeyListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) ApiKeyListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<ApiKeyDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) ApiKeyDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { ApiKeyListDao apikeylistdao1 = new ApiKeyListDao(); ApiKeyListDao apikeylistdao2 = apikeylistdao1.clone(); assertNotNull(apikeylistdao1); assertNotNull(apikeylistdao2); assertNotSame(apikeylistdao2, apikeylistdao1); assertEquals(apikeylistdao2, apikeylistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
AccountDao extends AbstractModelDao<Account> implements CreateDao<Account>, UpdateDao<Account>, ReadDao<Account> { @Override @SuppressWarnings({ "resource", "unused" }) public AccountDao clone() { try { return new AccountDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } AccountDao(); AccountDao(ApiClientWrapper client); AccountDao(ConnectionOptions options); AccountDao(SdkContext sdkContext); Paginator<SubtenantApiKey> allApiKeys(@NonNull String id, @Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options); Paginator<SubtenantApiKey> allApiKeys(@Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options); Paginator<SubtenantApiKey> allApiKeys(@Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options, @NonNull Account account); Paginator<SubtenantApiKey> allApiKeys(@NonNull String id, @Nullable SubtenantApiKeyListOptions options); Paginator<SubtenantApiKey> allApiKeys(@Nullable SubtenantApiKeyListOptions options); Paginator<SubtenantApiKey> allApiKeys(@Nullable SubtenantApiKeyListOptions options, @NonNull Account account); Paginator<SubtenantDarkThemeColor> allDarkThemeBrandingColors(@NonNull String id, @Nullable SubtenantDarkThemeColorListOptions options); Paginator<SubtenantDarkThemeColor> allDarkThemeBrandingColors(@Nullable SubtenantDarkThemeColorListOptions options); Paginator<SubtenantDarkThemeColor> allDarkThemeBrandingColors(@Nullable SubtenantDarkThemeColorListOptions options, @NonNull Account account); Paginator<SubtenantDarkThemeImage> allDarkThemeBrandingImages(@NonNull String id, @Nullable SubtenantDarkThemeImageListOptions options); Paginator<SubtenantDarkThemeImage> allDarkThemeBrandingImages(@Nullable SubtenantDarkThemeImageListOptions options); Paginator<SubtenantDarkThemeImage> allDarkThemeBrandingImages(@Nullable SubtenantDarkThemeImageListOptions options, @NonNull Account account); Paginator<SubtenantLightThemeColor> allLightThemeBrandingColors(@NonNull String id, @Nullable SubtenantLightThemeColorListOptions options); Paginator<SubtenantLightThemeColor> allLightThemeBrandingColors(@Nullable SubtenantLightThemeColorListOptions options); Paginator<SubtenantLightThemeColor> allLightThemeBrandingColors(@Nullable SubtenantLightThemeColorListOptions options, @NonNull Account account); Paginator<SubtenantLightThemeImage> allLightThemeBrandingImages(@NonNull String id, @Nullable SubtenantLightThemeImageListOptions options); Paginator<SubtenantLightThemeImage> allLightThemeBrandingImages(@Nullable SubtenantLightThemeImageListOptions options); Paginator<SubtenantLightThemeImage> allLightThemeBrandingImages(@Nullable SubtenantLightThemeImageListOptions options, @NonNull Account account); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options, @NonNull Account account); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@NonNull String id, @Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@NonNull String id, @Nullable SubtenantTrustedCertificateListOptions options); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@Nullable SubtenantTrustedCertificateListOptions options); Paginator<SubtenantTrustedCertificate> allTrustedCertificates(@Nullable SubtenantTrustedCertificateListOptions options, @NonNull Account account); Paginator<SubtenantUserInvitation> allUserInvitations(@NonNull String id, @Nullable SubtenantUserInvitationListOptions options); Paginator<SubtenantUserInvitation> allUserInvitations(@Nullable SubtenantUserInvitationListOptions options); Paginator<SubtenantUserInvitation> allUserInvitations(@Nullable SubtenantUserInvitationListOptions options, @NonNull Account account); Paginator<SubtenantUser> allUsers(@NonNull String id, @Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options); Paginator<SubtenantUser> allUsers(@Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options); Paginator<SubtenantUser> allUsers(@Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options, @NonNull Account account); Paginator<SubtenantUser> allUsers(@NonNull String id, @Nullable SubtenantUserListOptions options); Paginator<SubtenantUser> allUsers(@Nullable SubtenantUserListOptions options); Paginator<SubtenantUser> allUsers(@Nullable SubtenantUserListOptions options, @NonNull Account account); ListResponse<SubtenantApiKey> apiKeys(@NonNull String id, @Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options); ListResponse<SubtenantApiKey> apiKeys(@Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options); ListResponse<SubtenantApiKey> apiKeys(@Nullable String keyEq, @Nullable String ownerEq, @Nullable SubtenantApiKeyListOptions options, @NonNull Account account); ListResponse<SubtenantApiKey> apiKeys(@NonNull String id, @Nullable SubtenantApiKeyListOptions options); ListResponse<SubtenantApiKey> apiKeys(@Nullable SubtenantApiKeyListOptions options); ListResponse<SubtenantApiKey> apiKeys(@Nullable SubtenantApiKeyListOptions options, @NonNull Account account); @Override @SuppressWarnings({ "resource", "unused" }) AccountDao clone(); @Override Account create(); @Override Account create(@NonNull Account account); Account create(@Nullable @DefaultValue("create") String action); Account create(@Nullable @DefaultValue("create") String action, @NonNull Account account); ListResponse<SubtenantDarkThemeColor> darkThemeBrandingColors(@NonNull String id, @Nullable SubtenantDarkThemeColorListOptions options); ListResponse<SubtenantDarkThemeColor> darkThemeBrandingColors(@Nullable SubtenantDarkThemeColorListOptions options); ListResponse<SubtenantDarkThemeColor> darkThemeBrandingColors(@Nullable SubtenantDarkThemeColorListOptions options, @NonNull Account account); ListResponse<SubtenantDarkThemeImage> darkThemeBrandingImages(@NonNull String id, @Nullable SubtenantDarkThemeImageListOptions options); ListResponse<SubtenantDarkThemeImage> darkThemeBrandingImages(@Nullable SubtenantDarkThemeImageListOptions options); ListResponse<SubtenantDarkThemeImage> darkThemeBrandingImages(@Nullable SubtenantDarkThemeImageListOptions options, @NonNull Account account); ListResponse<SubtenantLightThemeColor> lightThemeBrandingColors(@NonNull String id, @Nullable SubtenantLightThemeColorListOptions options); ListResponse<SubtenantLightThemeColor> lightThemeBrandingColors(@Nullable SubtenantLightThemeColorListOptions options); ListResponse<SubtenantLightThemeColor> lightThemeBrandingColors(@Nullable SubtenantLightThemeColorListOptions options, @NonNull Account account); ListResponse<SubtenantLightThemeImage> lightThemeBrandingImages(@NonNull String id, @Nullable SubtenantLightThemeImageListOptions options); ListResponse<SubtenantLightThemeImage> lightThemeBrandingImages(@Nullable SubtenantLightThemeImageListOptions options); ListResponse<SubtenantLightThemeImage> lightThemeBrandingImages(@Nullable SubtenantLightThemeImageListOptions options, @NonNull Account account); @SuppressWarnings("PMD.ShortMethodName") Account me(); @SuppressWarnings("PMD.ShortMethodName") Account me(@Nullable String include, @Nullable String properties); @Override Account read(); Account read(@NonNull Account account); @Override Account read(@NonNull String id); Account read(@Nullable String include, @Nullable String properties); Account read(@Nullable String include, @Nullable String properties, @NonNull Account account); Account read(@Nullable String include, @Nullable String properties, @NonNull String id); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options, @NonNull Account account); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@NonNull String id, @Nullable Integer expireEq, @Nullable String ownerEq, @Nullable SubtenantTrustedCertificateListOptions options); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@NonNull String id, @Nullable SubtenantTrustedCertificateListOptions options); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@Nullable SubtenantTrustedCertificateListOptions options); ListResponse<SubtenantTrustedCertificate> trustedCertificates(@Nullable SubtenantTrustedCertificateListOptions options, @NonNull Account account); @Override Account update(); @Override Account update(@NonNull Account account); Account update(@NonNull String id); Account update(@NonNull String id, @NonNull Account account); ListResponse<SubtenantUserInvitation> userInvitations(@NonNull String id, @Nullable SubtenantUserInvitationListOptions options); ListResponse<SubtenantUserInvitation> userInvitations(@Nullable SubtenantUserInvitationListOptions options); ListResponse<SubtenantUserInvitation> userInvitations(@Nullable SubtenantUserInvitationListOptions options, @NonNull Account account); ListResponse<SubtenantUser> users(@NonNull String id, @Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options); ListResponse<SubtenantUser> users(@Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options); ListResponse<SubtenantUser> users(@Nullable String emailEq, @Nullable String loginProfilesEq, @Nullable SubtenantUserListOptions options, @NonNull Account account); ListResponse<SubtenantUser> users(@NonNull String id, @Nullable SubtenantUserListOptions options); ListResponse<SubtenantUser> users(@Nullable SubtenantUserListOptions options); ListResponse<SubtenantUser> users(@Nullable SubtenantUserListOptions options, @NonNull Account account); }
@SuppressWarnings("resource") @Test public void testClone() { try { AccountDao accountdao1 = new AccountDao(); AccountDao accountdao2 = accountdao1.clone(); assertNotNull(accountdao1); assertNotNull(accountdao2); assertNotSame(accountdao2, accountdao1); assertEquals(accountdao2, accountdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantIdentityProviderListOptions extends ListOptions { @Override public SubtenantIdentityProviderListOptions clone() { final SubtenantIdentityProviderListOptions opt = new SubtenantIdentityProviderListOptions(); opt.setOptions(this); return opt; } @Internal SubtenantIdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantIdentityProviderListOptions(SubtenantIdentityProviderListOptions subtenantIdentityProviderListOptions); SubtenantIdentityProviderListOptions(); @Internal SubtenantIdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantIdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions1 = new SubtenantIdentityProviderListOptions(Integer.valueOf(115), Long.valueOf(-105), Order.getDefault(), "b17f717b-ea07-4b1f-8f6b-5b0d4d727a72", null, null); SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions2 = subtenantidentityproviderlistoptions1.clone(); assertNotNull(subtenantidentityproviderlistoptions1); assertNotNull(subtenantidentityproviderlistoptions2); assertNotSame(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantIdentityProviderListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal SubtenantIdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantIdentityProviderListOptions(SubtenantIdentityProviderListOptions subtenantIdentityProviderListOptions); SubtenantIdentityProviderListOptions(); @Internal SubtenantIdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantIdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions1 = new SubtenantIdentityProviderListOptions(Integer.valueOf(35), Long.valueOf(-90), Order.getDefault(), "e8d0da9c-c88b-45fe-89e9-6509741aef23", null, null); SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions2 = new SubtenantIdentityProviderListOptions(Integer.valueOf(35), Long.valueOf(-90), Order.getDefault(), "e8d0da9c-c88b-45fe-89e9-6509741aef23", null, null); assertNotNull(subtenantidentityproviderlistoptions1); assertNotNull(subtenantidentityproviderlistoptions2); assertNotSame(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions2.hashCode(), subtenantidentityproviderlistoptions1.hashCode()); int hashCode = subtenantidentityproviderlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, subtenantidentityproviderlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantIdentityProviderListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof SubtenantIdentityProviderListOptions)) { return false; } final SubtenantIdentityProviderListOptions other = (SubtenantIdentityProviderListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal SubtenantIdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal SubtenantIdentityProviderListOptions(SubtenantIdentityProviderListOptions subtenantIdentityProviderListOptions); SubtenantIdentityProviderListOptions(); @Internal SubtenantIdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override SubtenantIdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions1 = new SubtenantIdentityProviderListOptions(Integer.valueOf(-107), Long.valueOf(-106), Order.getDefault(), "9c749b49-2a71-49ee-b068-ee815fec79e8", null, null); SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions2 = new SubtenantIdentityProviderListOptions(Integer.valueOf(-107), Long.valueOf(-106), Order.getDefault(), "9c749b49-2a71-49ee-b068-ee815fec79e8", null, null); SubtenantIdentityProviderListOptions subtenantidentityproviderlistoptions3 = new SubtenantIdentityProviderListOptions(Integer.valueOf(15), Long.valueOf(-102), Order.getDefault(), "f8eb9baa-588d-4be4-be98-06a336c36a73", null, null); assertNotNull(subtenantidentityproviderlistoptions1); assertNotNull(subtenantidentityproviderlistoptions2); assertNotNull(subtenantidentityproviderlistoptions3); assertNotSame(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertNotSame(subtenantidentityproviderlistoptions3, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions2, subtenantidentityproviderlistoptions1); assertEquals(subtenantidentityproviderlistoptions1, subtenantidentityproviderlistoptions2); assertEquals(subtenantidentityproviderlistoptions1, subtenantidentityproviderlistoptions1); assertFalse(subtenantidentityproviderlistoptions1.equals(null)); assertNotEquals(subtenantidentityproviderlistoptions3, subtenantidentityproviderlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
PolicyGroupDao extends AbstractModelDao<PolicyGroup> implements CrudDao<PolicyGroup> { @Override @SuppressWarnings({ "resource", "unused" }) public PolicyGroupDao clone() { try { return new PolicyGroupDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } PolicyGroupDao(); PolicyGroupDao(ApiClientWrapper client); PolicyGroupDao(ConnectionOptions options); PolicyGroupDao(SdkContext sdkContext); Paginator<ApiKey> allApiKeys(@Nullable ApiKeyListOptions options); Paginator<ApiKey> allApiKeys(@Nullable ApiKeyListOptions options, @NonNull PolicyGroup policyGroup); Paginator<ApiKey> allApiKeys(@NonNull String id, @Nullable ApiKeyListOptions options); Paginator<User> allUsers(@NonNull String id, @Nullable UserListOptions options); Paginator<User> allUsers(@Nullable UserListOptions options); Paginator<User> allUsers(@Nullable UserListOptions options, @NonNull PolicyGroup policyGroup); ListResponse<ApiKey> apiKeys(@Nullable ApiKeyListOptions options); ListResponse<ApiKey> apiKeys(@Nullable ApiKeyListOptions options, @NonNull PolicyGroup policyGroup); ListResponse<ApiKey> apiKeys(@NonNull String id, @Nullable ApiKeyListOptions options); @Override @SuppressWarnings({ "resource", "unused" }) PolicyGroupDao clone(); @Override PolicyGroup create(); PolicyGroup create(@Nullable Object members); PolicyGroup create(@Nullable Object members, @NonNull PolicyGroup policyGroup); @Override PolicyGroup create(@NonNull PolicyGroup policyGroup); @Override void delete(); @Override void delete(@NonNull PolicyGroup policyGroup); @Override void delete(@NonNull String id); @Override PolicyGroup read(); PolicyGroup read(@NonNull PolicyGroup policyGroup); @Override PolicyGroup read(@NonNull String id); @Override PolicyGroup update(); @Override PolicyGroup update(@NonNull PolicyGroup policyGroup); PolicyGroup update(@NonNull String id); PolicyGroup update(@NonNull String id, @NonNull PolicyGroup policyGroup); ListResponse<User> users(@NonNull String id, @Nullable UserListOptions options); ListResponse<User> users(@Nullable UserListOptions options); ListResponse<User> users(@Nullable UserListOptions options, @NonNull PolicyGroup policyGroup); }
@SuppressWarnings("resource") @Test public void testClone() { try { PolicyGroupDao policygroupdao1 = new PolicyGroupDao(); PolicyGroupDao policygroupdao2 = policygroupdao1.clone(); assertNotNull(policygroupdao1); assertNotNull(policygroupdao2); assertNotSame(policygroupdao2, policygroupdao1); assertEquals(policygroupdao2, policygroupdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
IdentityProviderListOptions extends ListOptions { @Override public IdentityProviderListOptions clone() { final IdentityProviderListOptions opt = new IdentityProviderListOptions(); opt.setOptions(this); return opt; } @Internal IdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal IdentityProviderListOptions(IdentityProviderListOptions identityProviderListOptions); IdentityProviderListOptions(); @Internal IdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override IdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { IdentityProviderListOptions identityproviderlistoptions1 = new IdentityProviderListOptions(Integer.valueOf(32), Long.valueOf(126), Order.getDefault(), "ff96ce8b-a1f6-4a4f-b58b-3ce84e48d530", null, null); IdentityProviderListOptions identityproviderlistoptions2 = identityproviderlistoptions1.clone(); assertNotNull(identityproviderlistoptions1); assertNotNull(identityproviderlistoptions2); assertNotSame(identityproviderlistoptions2, identityproviderlistoptions1); assertEquals(identityproviderlistoptions2, identityproviderlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
IdentityProviderListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal IdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal IdentityProviderListOptions(IdentityProviderListOptions identityProviderListOptions); IdentityProviderListOptions(); @Internal IdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override IdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { IdentityProviderListOptions identityproviderlistoptions1 = new IdentityProviderListOptions(Integer.valueOf(-104), Long.valueOf(101), Order.getDefault(), "b9d02487-86b9-43eb-b4a8-409c434ce34d", null, null); IdentityProviderListOptions identityproviderlistoptions2 = new IdentityProviderListOptions(Integer.valueOf(-104), Long.valueOf(101), Order.getDefault(), "b9d02487-86b9-43eb-b4a8-409c434ce34d", null, null); assertNotNull(identityproviderlistoptions1); assertNotNull(identityproviderlistoptions2); assertNotSame(identityproviderlistoptions2, identityproviderlistoptions1); assertEquals(identityproviderlistoptions2, identityproviderlistoptions1); assertEquals(identityproviderlistoptions2.hashCode(), identityproviderlistoptions1.hashCode()); int hashCode = identityproviderlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, identityproviderlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
IdentityProviderListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof IdentityProviderListOptions)) { return false; } final IdentityProviderListOptions other = (IdentityProviderListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal IdentityProviderListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal IdentityProviderListOptions(IdentityProviderListOptions identityProviderListOptions); IdentityProviderListOptions(); @Internal IdentityProviderListOptions(String after, Filters filter); @Override String toString(); @Override IdentityProviderListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { IdentityProviderListOptions identityproviderlistoptions1 = new IdentityProviderListOptions(Integer.valueOf(41), Long.valueOf(-97), Order.getDefault(), "4239e087-141b-469a-b1be-f722b89b1359", null, null); IdentityProviderListOptions identityproviderlistoptions2 = new IdentityProviderListOptions(Integer.valueOf(41), Long.valueOf(-97), Order.getDefault(), "4239e087-141b-469a-b1be-f722b89b1359", null, null); IdentityProviderListOptions identityproviderlistoptions3 = new IdentityProviderListOptions(Integer.valueOf(-28), Long.valueOf(-31), Order.getDefault(), "65dc9b3e-1b38-48a6-aa89-420f37da8437", null, null); assertNotNull(identityproviderlistoptions1); assertNotNull(identityproviderlistoptions2); assertNotNull(identityproviderlistoptions3); assertNotSame(identityproviderlistoptions2, identityproviderlistoptions1); assertNotSame(identityproviderlistoptions3, identityproviderlistoptions1); assertEquals(identityproviderlistoptions2, identityproviderlistoptions1); assertEquals(identityproviderlistoptions2, identityproviderlistoptions1); assertEquals(identityproviderlistoptions1, identityproviderlistoptions2); assertEquals(identityproviderlistoptions1, identityproviderlistoptions1); assertFalse(identityproviderlistoptions1.equals(null)); assertNotEquals(identityproviderlistoptions3, identityproviderlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantIdentityProviderListDao extends AbstractSubtenantIdentityProviderListDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantIdentityProviderListDao clone() { try { return new SubtenantIdentityProviderListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantIdentityProviderListDao(); SubtenantIdentityProviderListDao(ApiClientWrapper client); SubtenantIdentityProviderListDao(ConnectionOptions options); SubtenantIdentityProviderListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantIdentityProviderListDao clone(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantIdentityProviderListDao subtenantidentityproviderlistdao1 = new SubtenantIdentityProviderListDao(); SubtenantIdentityProviderListDao subtenantidentityproviderlistdao2 = subtenantidentityproviderlistdao1.clone(); assertNotNull(subtenantidentityproviderlistdao1); assertNotNull(subtenantidentityproviderlistdao2); assertNotSame(subtenantidentityproviderlistdao2, subtenantidentityproviderlistdao1); assertEquals(subtenantidentityproviderlistdao2, subtenantidentityproviderlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
ApiKeyListOptions extends ListOptions { @Override public ApiKeyListOptions clone() { final ApiKeyListOptions opt = new ApiKeyListOptions(); opt.setOptions(this); return opt; } @Internal ApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal ApiKeyListOptions(ApiKeyListOptions apiKeyListOptions); ApiKeyListOptions(); @Internal ApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override ApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testClone() { try { ApiKeyListOptions apikeylistoptions1 = new ApiKeyListOptions(Integer.valueOf(0), Long.valueOf(-98), Order.getDefault(), "0e0f2855-e5cb-45b8-8b0e-5c5d3f7873de", null, null); ApiKeyListOptions apikeylistoptions2 = apikeylistoptions1.clone(); assertNotNull(apikeylistoptions1); assertNotNull(apikeylistoptions2); assertNotSame(apikeylistoptions2, apikeylistoptions1); assertEquals(apikeylistoptions2, apikeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
ApiKeyListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal ApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal ApiKeyListOptions(ApiKeyListOptions apiKeyListOptions); ApiKeyListOptions(); @Internal ApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override ApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testHashCode() { try { ApiKeyListOptions apikeylistoptions1 = new ApiKeyListOptions(Integer.valueOf(-28), Long.valueOf(110), Order.getDefault(), "dc5971ae-9343-451a-bf95-541dee920182", null, null); ApiKeyListOptions apikeylistoptions2 = new ApiKeyListOptions(Integer.valueOf(-28), Long.valueOf(110), Order.getDefault(), "dc5971ae-9343-451a-bf95-541dee920182", null, null); assertNotNull(apikeylistoptions1); assertNotNull(apikeylistoptions2); assertNotSame(apikeylistoptions2, apikeylistoptions1); assertEquals(apikeylistoptions2, apikeylistoptions1); assertEquals(apikeylistoptions2.hashCode(), apikeylistoptions1.hashCode()); int hashCode = apikeylistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, apikeylistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
ApiKeyListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof ApiKeyListOptions)) { return false; } final ApiKeyListOptions other = (ApiKeyListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal ApiKeyListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal ApiKeyListOptions(ApiKeyListOptions apiKeyListOptions); ApiKeyListOptions(); @Internal ApiKeyListOptions(String after, Filters filter); @Override String toString(); @Override ApiKeyListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); }
@SuppressWarnings("resource") @Test public void testEquals() { try { ApiKeyListOptions apikeylistoptions1 = new ApiKeyListOptions(Integer.valueOf(93), Long.valueOf(85), Order.getDefault(), "58e43002-1b78-4bf4-ab70-f5618938d683", null, null); ApiKeyListOptions apikeylistoptions2 = new ApiKeyListOptions(Integer.valueOf(93), Long.valueOf(85), Order.getDefault(), "58e43002-1b78-4bf4-ab70-f5618938d683", null, null); ApiKeyListOptions apikeylistoptions3 = new ApiKeyListOptions(Integer.valueOf(107), Long.valueOf(-32), Order.getDefault(), "7c241edb-798f-474e-9140-ebc4a96e397e", null, null); assertNotNull(apikeylistoptions1); assertNotNull(apikeylistoptions2); assertNotNull(apikeylistoptions3); assertNotSame(apikeylistoptions2, apikeylistoptions1); assertNotSame(apikeylistoptions3, apikeylistoptions1); assertEquals(apikeylistoptions2, apikeylistoptions1); assertEquals(apikeylistoptions2, apikeylistoptions1); assertEquals(apikeylistoptions1, apikeylistoptions2); assertEquals(apikeylistoptions1, apikeylistoptions1); assertFalse(apikeylistoptions1.equals(null)); assertNotEquals(apikeylistoptions3, apikeylistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
TranslationUtils { public static String toTimestamp(Date date, DateFormat format) { if (date == null || format == null) { return null; } return format.format(date); } private TranslationUtils(); static Date toDate(DateTime date); static Date toDate(LocalDate ldate); static Date toDate(Calendar date); static Date toDate(Number timestamp); static Date toDate(Number timestamp, TimeUnit unit); static DateTime toDateTime(Date date); static LocalDate toLocalDate(Date date); static DataFile toDataFile(File file); static DataFile toDataFile(String filePath); static long toLong(Number longE); static long toLong(Date value); static long toLong(String value); static long toLong(Number longE, long defaultValue); static long toLong(Date value, long defaultValue); static long toLong(String stringContainingANumber, long defaultValue); static int toInt(Number number); static int toInt(String value); static int toInt(Number integer, int defaultV); static int toInt(String value, int defaultV); static Integer toInteger(String value, Integer defaultV); static boolean toBool(Boolean bool); static boolean toBool(String value); static boolean toBool(Boolean bool, boolean defaultB); static boolean toBool(String value, boolean defaultV); static double toDouble(Number value); static double toDouble(String value); static double toDouble(Number value, double defaultD); static double toDouble(String value, double defaultD); static URL toUrl(String url); static String toString(Object obj); static Base64 toBase64(Object obj); static byte[] toByteArray(Object obj); static synchronized Date convertTimestamp(String timestamp); static synchronized Date convertTimestamp(String timestamp, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format, Date defaultDate); static synchronized Date convertTimestamp(String timestamp, DateFormat format); static synchronized Date convertRfc3339Timestamp(String timestamp); static synchronized Date convertRfc3339Timestamp(String timestamp, Date defaultDate); static synchronized String toDefaultTimestamp(Date date); static synchronized String toRfc3339Timestamp(Date date); static String toTimestamp(Date date, DateFormat format); static List<String> parseList(String string, String separator); static DateTime moveToUtc(Date date); static Date moveDateTimeToUtc(Date date); static String toUtcTimestamp(Date date); static Date convertStringToDate(String valueStr); static final String METHOD_CONVERT_STRING_TO_DATE; static final String METHOD_CONVERT_OTHER_TO_DATE; static final String METHOD_CONVERT_DATE_TO_DATETIME; static final String METHOD_CONVERT_DATE_TO_LOCALDATE; static final String METHOD_CONVERT_DATE_TO_STRING; static final String METHOD_CONVERT_STRING_TO_URL; static final String METHOD_CONVERT_BOOL_TO_BOOL; static final String METHOD_CONVERT_NUMBER_TO_LONG; static final String METHOD_CONVERT_NUMBER_TO_INT; static final String METHOD_CONVERT_NUMBER_TO_DOUBLE; static final String METHOD_CONVERT_ANY_TO_STRING; static final String METHOD_CONVERT_ANY_TO_BYTE_ARRAY; static final String METHOD_CONVERT_ANY_TO_BASE64; static final String METHOD_CONVERT_TO_DATA_FILE; }
@Test public void testToTimestamp() { assumeThat(Locale.getDefault(), is(Locale.UK)); Calendar calendar = Calendar.getInstance(); calendar.setTimeZone(TimeZone.getTimeZone("GMT")); calendar.set(2017, 7, 11, 19, 33, 35); calendar.set(Calendar.MILLISECOND, 0); DateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z"); format.setTimeZone(TimeZone.getTimeZone("GMT")); assertEquals("Fri, 11 Aug 2017 19:33:35 GMT", TranslationUtils.toTimestamp(calendar.getTime(), format)); }
UserInvitationListOptions extends ListOptions { @Override public UserInvitationListOptions clone() { final UserInvitationListOptions opt = new UserInvitationListOptions(); opt.setOptions(this); return opt; } @Internal UserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserInvitationListOptions(UserInvitationListOptions userInvitationListOptions); UserInvitationListOptions(); @Internal UserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override UserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testClone() { try { UserInvitationListOptions userinvitationlistoptions1 = new UserInvitationListOptions(Integer.valueOf(-5), Long.valueOf(-102), Order.getDefault(), "4497049c-f021-423b-91fb-3125652d0333", null, null); UserInvitationListOptions userinvitationlistoptions2 = userinvitationlistoptions1.clone(); assertNotNull(userinvitationlistoptions1); assertNotNull(userinvitationlistoptions2); assertNotSame(userinvitationlistoptions2, userinvitationlistoptions1); assertEquals(userinvitationlistoptions2, userinvitationlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
UserInvitationListOptions extends ListOptions { @Override @SuppressWarnings("PMD.UselessOverridingMethod") public int hashCode() { return super.hashCode(); } @Internal UserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserInvitationListOptions(UserInvitationListOptions userInvitationListOptions); UserInvitationListOptions(); @Internal UserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override UserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testHashCode() { try { UserInvitationListOptions userinvitationlistoptions1 = new UserInvitationListOptions(Integer.valueOf(22), Long.valueOf(-22), Order.getDefault(), "03e6a3f8-b0ae-4075-8af0-344f02517fcc", null, null); UserInvitationListOptions userinvitationlistoptions2 = new UserInvitationListOptions(Integer.valueOf(22), Long.valueOf(-22), Order.getDefault(), "03e6a3f8-b0ae-4075-8af0-344f02517fcc", null, null); assertNotNull(userinvitationlistoptions1); assertNotNull(userinvitationlistoptions2); assertNotSame(userinvitationlistoptions2, userinvitationlistoptions1); assertEquals(userinvitationlistoptions2, userinvitationlistoptions1); assertEquals(userinvitationlistoptions2.hashCode(), userinvitationlistoptions1.hashCode()); int hashCode = userinvitationlistoptions1.hashCode(); for (int i = 0; i < 5; i++) { assertEquals(hashCode, userinvitationlistoptions1.hashCode()); } } catch (Exception exception) { fail(exception.getMessage()); } }
UserInvitationListOptions extends ListOptions { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!super.equals(obj)) { return false; } if (!(obj instanceof UserInvitationListOptions)) { return false; } final UserInvitationListOptions other = (UserInvitationListOptions) obj; if (!other.canEqual(this)) { return false; } return true; } @Internal UserInvitationListOptions(Integer pageSize, Long maxResults, Order order, String after, List<IncludeField> include, Filters filter); @Internal UserInvitationListOptions(UserInvitationListOptions userInvitationListOptions); UserInvitationListOptions(); @Internal UserInvitationListOptions(String after, Filters filter); List<Filter> getLoginProfilesFilters(); void addEqualToLoginProfilesFilter(List<LoginProfile> filterByLoginProfiles); @SuppressWarnings("unchecked") T equalToLoginProfiles(List<LoginProfile> filterByLoginProfiles); @Override String toString(); @Override UserInvitationListOptions clone(); @Override boolean equals(Object obj); @Override @SuppressWarnings("PMD.UselessOverridingMethod") int hashCode(); static final String TAG_FILTER_BY_LOGIN_PROFILES; }
@SuppressWarnings("resource") @Test public void testEquals() { try { UserInvitationListOptions userinvitationlistoptions1 = new UserInvitationListOptions(Integer.valueOf(-38), Long.valueOf(62), Order.getDefault(), "cdd23c3c-f7bc-45b4-93e8-6b5a69efa811", null, null); UserInvitationListOptions userinvitationlistoptions2 = new UserInvitationListOptions(Integer.valueOf(-38), Long.valueOf(62), Order.getDefault(), "cdd23c3c-f7bc-45b4-93e8-6b5a69efa811", null, null); UserInvitationListOptions userinvitationlistoptions3 = new UserInvitationListOptions(Integer.valueOf(20), Long.valueOf(-125), Order.getDefault(), "43ed5791-6f4b-41f9-b5ab-aa66ce00c13c", null, null); assertNotNull(userinvitationlistoptions1); assertNotNull(userinvitationlistoptions2); assertNotNull(userinvitationlistoptions3); assertNotSame(userinvitationlistoptions2, userinvitationlistoptions1); assertNotSame(userinvitationlistoptions3, userinvitationlistoptions1); assertEquals(userinvitationlistoptions2, userinvitationlistoptions1); assertEquals(userinvitationlistoptions2, userinvitationlistoptions1); assertEquals(userinvitationlistoptions1, userinvitationlistoptions2); assertEquals(userinvitationlistoptions1, userinvitationlistoptions1); assertFalse(userinvitationlistoptions1.equals(null)); assertNotEquals(userinvitationlistoptions3, userinvitationlistoptions1); } catch (Exception exception) { fail(exception.getMessage()); } }
AccountListDao extends AbstractModelListDao<Account, AccountListOptions> implements ModelListDao<Account, AccountListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public AccountListDao clone() { try { return new AccountListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } AccountListDao(); AccountListDao(ApiClientWrapper client); AccountListDao(ConnectionOptions options); AccountListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) AccountListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<AccountDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) AccountDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { AccountListDao accountlistdao1 = new AccountListDao(); AccountListDao accountlistdao2 = accountlistdao1.clone(); assertNotNull(accountlistdao1); assertNotNull(accountlistdao2); assertNotSame(accountlistdao2, accountlistdao1); assertEquals(accountlistdao2, accountlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
SubtenantPolicyGroupListDao extends AbstractSubtenantPolicyGroupListDao { @Override @SuppressWarnings({ "resource", "unused" }) public SubtenantPolicyGroupListDao clone() { try { return new SubtenantPolicyGroupListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } SubtenantPolicyGroupListDao(); SubtenantPolicyGroupListDao(ApiClientWrapper client); SubtenantPolicyGroupListDao(ConnectionOptions options); SubtenantPolicyGroupListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) SubtenantPolicyGroupListDao clone(); }
@SuppressWarnings("resource") @Test public void testClone() { try { SubtenantPolicyGroupListDao subtenantpolicygrouplistdao1 = new SubtenantPolicyGroupListDao(); SubtenantPolicyGroupListDao subtenantpolicygrouplistdao2 = subtenantpolicygrouplistdao1.clone(); assertNotNull(subtenantpolicygrouplistdao1); assertNotNull(subtenantpolicygrouplistdao2); assertNotSame(subtenantpolicygrouplistdao2, subtenantpolicygrouplistdao1); assertEquals(subtenantpolicygrouplistdao2, subtenantpolicygrouplistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }
UserListDao extends AbstractModelListDao<User, UserListOptions> implements ModelListDao<User, UserListOptions> { @Override @SuppressWarnings({ "resource", "unused" }) public UserListDao clone() { try { return new UserListDao().configureAndGet(getModuleOrThrow() == null ? null : getModuleOrThrow().clone()); } catch (MbedCloudException exception) { return null; } } UserListDao(); UserListDao(ApiClientWrapper client); UserListDao(ConnectionOptions options); UserListDao(SdkContext sdkContext); @Override @SuppressWarnings({ "resource", "unused" }) UserListDao clone(); @Override @Internal @SuppressWarnings("unchecked") Class<UserDao> getModelDaoClass(); @Override @Internal @SuppressWarnings({ "unchecked", "resource" }) UserDao getNewModelDao(); }
@SuppressWarnings("resource") @Test public void testClone() { try { UserListDao userlistdao1 = new UserListDao(); UserListDao userlistdao2 = userlistdao1.clone(); assertNotNull(userlistdao1); assertNotNull(userlistdao2); assertNotSame(userlistdao2, userlistdao1); assertEquals(userlistdao2, userlistdao1); } catch (Exception exception) { fail(exception.getMessage()); } }