- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
65 lines
2.0 KiB
Java
65 lines
2.0 KiB
Java
package com.facebook.internal;
|
|
|
|
import java.util.Arrays;
|
|
import java.util.EnumSet;
|
|
import java.util.Iterator;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public enum SmartLoginOption {
|
|
None(0),
|
|
Enabled(1),
|
|
RequireConfirm(2);
|
|
|
|
private static final EnumSet<SmartLoginOption> ALL;
|
|
public static final Companion Companion = new Companion(null);
|
|
private final long value;
|
|
|
|
public static final EnumSet<SmartLoginOption> parseOptions(long j) {
|
|
return Companion.parseOptions(j);
|
|
}
|
|
|
|
public final long getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
SmartLoginOption(long j) {
|
|
this.value = j;
|
|
}
|
|
|
|
static {
|
|
EnumSet<SmartLoginOption> allOf = EnumSet.allOf(SmartLoginOption.class);
|
|
Intrinsics.checkNotNullExpressionValue(allOf, "allOf(SmartLoginOption::class.java)");
|
|
ALL = allOf;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final EnumSet<SmartLoginOption> parseOptions(long j) {
|
|
EnumSet<SmartLoginOption> result = EnumSet.noneOf(SmartLoginOption.class);
|
|
Iterator it = SmartLoginOption.ALL.iterator();
|
|
while (it.hasNext()) {
|
|
SmartLoginOption smartLoginOption = (SmartLoginOption) it.next();
|
|
if ((smartLoginOption.getValue() & j) != 0) {
|
|
result.add(smartLoginOption);
|
|
}
|
|
}
|
|
Intrinsics.checkNotNullExpressionValue(result, "result");
|
|
return result;
|
|
}
|
|
}
|
|
|
|
/* renamed from: values, reason: to resolve conflict with enum method */
|
|
public static SmartLoginOption[] valuesCustom() {
|
|
SmartLoginOption[] valuesCustom = values();
|
|
return (SmartLoginOption[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
|
|
}
|
|
}
|