]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/java/src/main/java/org/rocksdb/SanityLevel.java
3 public enum SanityLevel
{
5 LOOSELY_COMPATIBLE((byte) 0x1),
6 EXACT_MATCH((byte) 0xFF);
8 private final byte value
;
10 SanityLevel(final byte value
) {
15 * Get the internal representation value.
17 * @return the internal representation value.
19 // TODO(AR) should be made package-private
20 public byte getValue() {
25 * Get the SanityLevel from the internal representation value.
27 * @param value the internal representation value.
29 * @return the SanityLevel
31 * @throws IllegalArgumentException if the value does not match a
34 static SanityLevel
fromValue(final byte value
) throws IllegalArgumentException
{
35 for (final SanityLevel level
: SanityLevel
.values()) {
36 if (level
.value
== value
) {
40 throw new IllegalArgumentException("Unknown value for SanityLevel: " + value
);