@Test public void checkPatternsMatchLength() { int patternsArrCount = ValiFi.getInstance().mParameters.mValidators.length; assertThat(patternsArrCount, is(ValiFi.Builder.PATTERN_COUNT)); }
static ValiFi getInstance() { if (ourInstance == null) { throw new ValiFiException("ValiFi must be installed in Application.onCreate()!"); } return ourInstance; }
ValiFi { static ValiFi getInstance() { if (ourInstance == null) { throw new ValiFiException("ValiFi must be installed in Application.onCreate()!"); } return ourInstance; } }
ValiFi { static ValiFi getInstance() { if (ourInstance == null) { throw new ValiFiException("ValiFi must be installed in Application.onCreate()!"); } return ourInstance; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); }
ValiFi { static ValiFi getInstance() { if (ourInstance == null) { throw new ValiFiException("ValiFi must be installed in Application.onCreate()!"); } return ourInstance; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext); @RestrictTo(TESTS) static void install(); @RestrictTo(TESTS) static void install(@NonNull ValiFiConfig config); static void destroyFields(ValiFiValidable... fields); @NonNull static Set<ValiFiCardType> getCreditCardTypes(); }
ValiFi { static ValiFi getInstance() { if (ourInstance == null) { throw new ValiFiException("ValiFi must be installed in Application.onCreate()!"); } return ourInstance; } private  ValiFi(@Nullable Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext, @NonNull ValiFiConfig config); static void install(@NonNull Context appContext); @RestrictTo(TESTS) static void install(); @RestrictTo(TESTS) static void install(@NonNull ValiFiConfig config); static void destroyFields(ValiFiValidable... fields); @NonNull static Set<ValiFiCardType> getCreditCardTypes();  }