openmrs-android-sdk/src/main/java/com/openmrs/android_sdk/library/api/RestServiceBuilder.java
/**
     * Create service s.
     *
     * @param <S>          the type parameter
     * @param serviceClass the service class
     * @return the s
     */
Create service s.
@param           the type parameter
@param serviceClass the service class
@return the s
Create service s . @param the type parameter @param serviceClass the service class @return the s
public static <S> S createService(Class<S> serviceClass) {
        String username = OpenmrsAndroid.getUsername();
        String password = OpenmrsAndroid.getPassword();
        return createService(serviceClass, username, password);
    }
public static < S > S createService ( Class < S > serviceClass ) { String username = OpenmrsAndroid . getUsername ( ) ; String password = OpenmrsAndroid . getPassword ( ) ; return createService ( serviceClass , username , password ) ; }
Create service s.
 @param <S>          the type parameter
 @param serviceClass the service class
 @return the s
Create service s . @param <S > the type parameter @param serviceClass the service class @return the s