Add added timestamp to Identities

This commit is contained in:
AsamK 2016-07-08 10:14:53 +02:00
parent f2c2597379
commit 55d485de88
3 changed files with 69 additions and 24 deletions

View file

@ -0,0 +1,16 @@
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];
}
}