mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
16 lines
381 B
Java
16 lines
381 B
Java
package org.asamk.signal;
|
|
|
|
public enum TrustLevel {
|
|
UNTRUSTED,
|
|
TRUSTED_UNVERIFIED,
|
|
TRUSTED_VERIFIED;
|
|
|
|
private static TrustLevel[] cachedValues = null;
|
|
|
|
public static TrustLevel fromInt(int i) {
|
|
if (TrustLevel.cachedValues == null) {
|
|
TrustLevel.cachedValues = TrustLevel.values();
|
|
}
|
|
return TrustLevel.cachedValues[i];
|
|
}
|
|
}
|