For IntelliJ IDEA and
Android Studio


/** * Gets a random UUID. * * @return the random UUID. */ public static String randomUuid() { ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer(""); return resourceNamer.randomUuid(); }
/** * Wrapper for sleep, based on delayProvider. * @param milliseconds number of millisecond for which thread should put on sleep. */ public static void sleep(int milliseconds) { delayProvider.sleep(milliseconds); }
/** * Creates and returns a randomized name based on the prefix file for use by the sample. * @param namePrefix The prefix string to be used in generating the name. * @return a random name * */ public static String createRandomName(String namePrefix) { return SdkContext.randomResourceName(namePrefix, 30); }
/** * Creates ExecutableImpl. */ protected ExecutableImpl() { this(SdkContext.randomUuid()); }
/** * Wrapper delayed emission, based on delayProvider. * * @param event the event to emit * @param milliseconds the delay in milliseconds * @param <T> the type of event * @return delayed observable */ public static <T> Observable<T> delayedEmitAsync(T event, int milliseconds) { return delayProvider.delayedEmitAsync(event, milliseconds); }
/** * Factory method to generate instance of ResourceNamer. * @param name prefix for the names. * @return instance of ResourceNamer */ public ResourceNamer createResourceNamer(String name) { return new ResourceNamer(name); } }
@Override public Observable<V> call(U u) { return typeConvertAsync(u); } })
@Override protected PagedList<ActiveDirectoryApplication> wrapList(PagedList<ApplicationInner> pagedList) { return converter.convert(pagedList); }
/** * Gets a random name. * * @param prefix the prefix to be used if possible * @param maxLen the maximum length for the random generated name * @return the random name */ public static String randomResourceName(String prefix, int maxLen) { ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer(""); return resourceNamer.randomName(prefix, maxLen); }
/** * Gets a random name. * * @param prefix the prefix to be used if possible * @param maxLen the maximum length for the random generated name * @return the random name */ public static String randomResourceName(String prefix, int maxLen) { ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer(""); return resourceNamer.randomName(prefix, maxLen); }
/** * Gets a random UUID. * * @return the random UUID. */ public static String randomUuid() { ResourceNamer resourceNamer = SdkContext.getResourceNamerFactory().createResourceNamer(""); return resourceNamer.randomUuid(); }
/** * Wrapper for sleep, based on delayProvider. * @param milliseconds number of millisecond for which thread should put on sleep. */ public static void sleep(int milliseconds) { delayProvider.sleep(milliseconds); }
/** * Factory method to generate instance of ResourceNamer. * @param name prefix for the names. * @return instance of ResourceNamer */ public ResourceNamer createResourceNamer(String name) { return new ResourceNamer(name); } }
/** * Creates a TaskItem which is index-able using a random UUID. */ public IndexableTaskItem() { this(SdkContext.randomUuid()); }
/** * Creates CreatableUpdatableImpl. * * @param name the name of the model * @param innerObject the inner model object */ protected CreatableUpdatableImpl(String name, InnerModelT innerObject) { this(name, SdkContext.randomUuid(), innerObject); }