Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
so.potapov authored and alex-tiurin committed Nov 30, 2024
1 parent 7962e5f commit d6f1bb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.atiurin.ultron.custom.espresso.base
import android.os.Looper


object Checker {
internal object Checker {
fun checkMainThread() {
checkState(
Thread.currentThread() == Looper.getMainLooper().thread,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ package com.atiurin.ultron.custom.espresso.base

import org.hamcrest.Matcher

fun <T> filter(iterable: Iterable<T>, matcher: Matcher<T>): Iterable<T> {
internal fun <T> filter(iterable: Iterable<T>, matcher: Matcher<T>): Iterable<T> {
return iterable.filter { matcher.matches(it) }
}

fun <T> filterToList(iterable: Iterable<T>, matcher: Matcher<T>): List<T> {
internal fun <T> filterToList(iterable: Iterable<T>, matcher: Matcher<T>): List<T> {
return filter(iterable, matcher).toList()
}

fun joinToString(iterable: Iterable<Any>, delimiter: String): String {
internal fun joinToString(iterable: Iterable<Any>, delimiter: String): String {
return iterable.joinToString(separator = delimiter)
}

fun <T> toArray(iterator: Iterator<T>, clazz: Class<T>): Array<T> {
internal fun <T> toArray(iterator: Iterator<T>, clazz: Class<T>): Array<T> {
val arrayList = ArrayList<T>()
while (iterator.hasNext()) {
arrayList.add(iterator.next())
Expand Down

0 comments on commit d6f1bb8

Please sign in to comment.