package org.bouncycastle.asn1.eac; import java.util.Enumeration; import java.util.Hashtable; /* loaded from: classes6.dex */ public class Flags { int value; public void set(int i) { this.value = i | this.value; } public boolean isSet(int i) { return (i & this.value) != 0; } /* loaded from: classes6.dex */ class StringJoiner { boolean First = true; StringBuffer b = new StringBuffer(); String mSeparator; final Flags this$0; public String toString() { return this.b.toString(); } public void add(String str) { if (this.First) { this.First = false; } else { this.b.append(this.mSeparator); } this.b.append(str); } public StringJoiner(Flags flags, String str) { this.this$0 = flags; this.mSeparator = str; } } public int getFlags() { return this.value; } String decode(Hashtable hashtable) { StringJoiner stringJoiner = new StringJoiner(this, " "); Enumeration keys = hashtable.keys(); while (keys.hasMoreElements()) { Integer num = (Integer) keys.nextElement(); if (isSet(num.intValue())) { stringJoiner.add((String) hashtable.get(num)); } } return stringJoiner.toString(); } public Flags(int i) { this.value = i; } public Flags() { this.value = 0; } }