getStatusSet static method
Implementation
static Set<ContactShieldStatus> getStatusSet(int value) {
final Set<ContactShieldStatus> result = <ContactShieldStatus>{};
int tmpValue = value;
int base = 1;
while (tmpValue > 0) {
if (tmpValue % 2 != 0) {
result.add(ContactShieldStatus.fromValue(base));
}
tmpValue ~/= 2;
base *= 2;
}
return result;
}