mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
32 lines
1.2 KiB
Java
32 lines
1.2 KiB
Java
package com.fasterxml.jackson.databind.cfg;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Arrays;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public class CoercionConfig implements Serializable {
|
|
private static final int INPUT_SHAPE_COUNT = CoercionInputShape.values().length;
|
|
private static final long serialVersionUID = 1;
|
|
protected Boolean _acceptBlankAsEmpty;
|
|
protected final CoercionAction[] _coercionsByShape;
|
|
|
|
public CoercionConfig(CoercionConfig coercionConfig) {
|
|
this._acceptBlankAsEmpty = coercionConfig._acceptBlankAsEmpty;
|
|
CoercionAction[] coercionActionArr = coercionConfig._coercionsByShape;
|
|
this._coercionsByShape = (CoercionAction[]) Arrays.copyOf(coercionActionArr, coercionActionArr.length);
|
|
}
|
|
|
|
public CoercionAction findAction(CoercionInputShape coercionInputShape) {
|
|
return this._coercionsByShape[coercionInputShape.ordinal()];
|
|
}
|
|
|
|
public Boolean getAcceptBlankAsEmpty() {
|
|
return this._acceptBlankAsEmpty;
|
|
}
|
|
|
|
public CoercionConfig() {
|
|
this._coercionsByShape = new CoercionAction[INPUT_SHAPE_COUNT];
|
|
this._acceptBlankAsEmpty = null;
|
|
}
|
|
}
|