mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-14 01:47:17 +01:00
28 lines
746 B
Java
28 lines
746 B
Java
package com.fasterxml.jackson.annotation;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public enum OptBoolean {
|
|
TRUE,
|
|
FALSE,
|
|
DEFAULT;
|
|
|
|
public static boolean equals(Boolean bool, Boolean bool2) {
|
|
return bool == null ? bool2 == null : bool.equals(bool2);
|
|
}
|
|
|
|
public static OptBoolean fromBoolean(Boolean bool) {
|
|
return bool == null ? DEFAULT : bool.booleanValue() ? TRUE : FALSE;
|
|
}
|
|
|
|
public Boolean asBoolean() {
|
|
if (this == DEFAULT) {
|
|
return null;
|
|
}
|
|
return this == TRUE ? Boolean.TRUE : Boolean.FALSE;
|
|
}
|
|
|
|
public boolean asPrimitive() {
|
|
return this == TRUE;
|
|
}
|
|
}
|