Skip to content

Commit

Permalink
Move getCharSequenceArrayListOrNull back to common
Browse files Browse the repository at this point in the history
  • Loading branch information
zsmb13 committed May 18, 2024
1 parent bdffff2 commit ebc7b6c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion requirektx-bundle/api/android/requirektx-bundle.api
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
public final class co/zsmb/requirektx/BundleArrayListKt {
public static final fun getCharSequenceArrayListOrNull (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun getIntegerArrayListOrNull (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun getStringArrayListOrNull (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun requireCharSequenceArrayList (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
Expand All @@ -7,7 +8,6 @@ public final class co/zsmb/requirektx/BundleArrayListKt {
}

public final class co/zsmb/requirektx/BundleArrayList_androidKt {
public static final fun getCharSequenceArrayListOrNull (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun getParcelableArrayListOrNull (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun requireParcelableArrayList (Landroid/os/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
}
Expand Down
5 changes: 1 addition & 4 deletions requirektx-bundle/api/jvm/requirektx-bundle.api
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
public final class BlaKt {
public static final fun publicjvmapi ()V
}

public final class co/zsmb/requirektx/BundleArrayListKt {
public static final fun getCharSequenceArrayListOrNull (Landroidx/core/bundle/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun getIntegerArrayListOrNull (Landroidx/core/bundle/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun getStringArrayListOrNull (Landroidx/core/bundle/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
public static final fun requireCharSequenceArrayList (Landroidx/core/bundle/Bundle;Ljava/lang/String;)Ljava/util/ArrayList;
Expand Down
1 change: 1 addition & 0 deletions requirektx-bundle/api/requirektx-bundle.klib.api
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getByteArrayOr
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getByteOrNull(kotlin/String): kotlin/Byte? // co.zsmb.requirektx/getByteOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getCharArrayOrNull(kotlin/String): kotlin/CharArray? // co.zsmb.requirektx/getCharArrayOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getCharOrNull(kotlin/String): kotlin/Char? // co.zsmb.requirektx/getCharOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getCharSequenceArrayListOrNull(kotlin/String): kotlin.collections/ArrayList<kotlin/CharSequence>? // co.zsmb.requirektx/getCharSequenceArrayListOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getCharSequenceArrayOrNull(kotlin/String): kotlin/Array<kotlin/CharSequence>? // co.zsmb.requirektx/getCharSequenceArrayOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getCharSequenceOrNull(kotlin/String): kotlin/CharSequence? // co.zsmb.requirektx/getCharSequenceOrNull|[email protected](kotlin.String){}[0]
final inline fun (androidx.core.bundle/Bundle).co.zsmb.requirektx/getDoubleArrayOrNull(kotlin/String): kotlin/DoubleArray? // co.zsmb.requirektx/getDoubleArrayOrNull|[email protected](kotlin.String){}[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ import androidx.core.bundle.Bundle
import android.os.Parcelable

/**
* Returns the value associated with the given key.
*
* @throws IllegalArgumentException if the key does not exist.
* @throws IllegalStateException if the stored value is of the wrong type.
*/
* Returns the value associated with the given key.
*
* @throws IllegalArgumentException if the key does not exist.
* @throws IllegalStateException if the stored value is of the wrong type.
*/
public inline fun Bundle.requireParcelableArrayList(key: String): ArrayList<Parcelable> = requireImpl(key)

/**
* Returns the value associated with the given key, or null if the key doesn't exist,
* or the stored value is of the wrong type.
*/
public inline fun Bundle.getParcelableArrayListOrNull(key: String): ArrayList<Parcelable>? = getOrNullImpl(key)

/**
* Returns the value associated with the given key, or null if the key doesn't exist,
* or the stored value is of the wrong type.
*/
public inline fun Bundle.getCharSequenceArrayListOrNull(key: String): ArrayList<CharSequence>? = getOrNullImpl(key)
* or the stored value is of the wrong type.
*/
public inline fun Bundle.getParcelableArrayListOrNull(key: String): ArrayList<Parcelable>? = getOrNullImpl(key)
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ public inline fun Bundle.getIntegerArrayListOrNull(key: String): ArrayList<Int>?
*/
public inline fun Bundle.requireCharSequenceArrayList(key: String): ArrayList<CharSequence> = requireImpl(key)


/**
* Returns the value associated with the given key, or null if the key doesn't exist,
* or the stored value is of the wrong type.
*/
public inline fun Bundle.getCharSequenceArrayListOrNull(key: String): ArrayList<CharSequence>? = getOrNullImpl(key)

/**
* Returns the value associated with the given key.
Expand Down

0 comments on commit ebc7b6c

Please sign in to comment.