signal-cli/src/main/java/org/asamk/signal/TrustLevel.java
2016-07-14 16:20:27 +02:00

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];
}
}