Initial commit
This commit is contained in:
34
sources/com/facebook/internal/SmartLoginOption.java
Normal file
34
sources/com/facebook/internal/SmartLoginOption.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package com.facebook.internal;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.Iterator;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public enum SmartLoginOption {
|
||||
None(0),
|
||||
Enabled(1),
|
||||
RequireConfirm(2);
|
||||
|
||||
public static final EnumSet<SmartLoginOption> ALL = EnumSet.allOf(SmartLoginOption.class);
|
||||
private final long mValue;
|
||||
|
||||
SmartLoginOption(long j) {
|
||||
this.mValue = j;
|
||||
}
|
||||
|
||||
public static EnumSet<SmartLoginOption> parseOptions(long j) {
|
||||
EnumSet<SmartLoginOption> noneOf = EnumSet.noneOf(SmartLoginOption.class);
|
||||
Iterator it = ALL.iterator();
|
||||
while (it.hasNext()) {
|
||||
SmartLoginOption smartLoginOption = (SmartLoginOption) it.next();
|
||||
if ((smartLoginOption.getValue() & j) != 0) {
|
||||
noneOf.add(smartLoginOption);
|
||||
}
|
||||
}
|
||||
return noneOf;
|
||||
}
|
||||
|
||||
public long getValue() {
|
||||
return this.mValue;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user