2019-10-15 10:30:08 -07:00
|
|
|
/*
|
2021-12-30 15:08:43 -08:00
|
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
2016-11-15 08:42:33 -08:00
|
|
|
*
|
2019-10-15 10:30:08 -07:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2016-11-15 08:42:33 -08:00
|
|
|
*/
|
2019-10-15 10:30:08 -07:00
|
|
|
|
2022-09-29 22:25:24 -07:00
|
|
|
// @generated by enums.py
|
|
|
|
|
2016-12-05 02:56:20 -08:00
|
|
|
package com.facebook.yoga;
|
2016-11-15 08:42:33 -08:00
|
|
|
|
2016-11-28 09:20:59 -08:00
|
|
|
import com.facebook.proguard.annotations.DoNotStrip;
|
|
|
|
|
|
|
|
@DoNotStrip
|
2016-12-02 05:47:43 -08:00
|
|
|
public enum YogaLogLevel {
|
2016-11-15 08:42:33 -08:00
|
|
|
ERROR(0),
|
|
|
|
WARN(1),
|
|
|
|
INFO(2),
|
|
|
|
DEBUG(3),
|
2017-05-03 09:22:35 -07:00
|
|
|
VERBOSE(4),
|
|
|
|
FATAL(5);
|
2016-11-15 08:42:33 -08:00
|
|
|
|
2018-01-22 02:48:53 -08:00
|
|
|
private final int mIntValue;
|
2016-11-15 08:42:33 -08:00
|
|
|
|
2016-12-02 05:47:43 -08:00
|
|
|
YogaLogLevel(int intValue) {
|
2016-11-15 08:42:33 -08:00
|
|
|
mIntValue = intValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
public int intValue() {
|
|
|
|
return mIntValue;
|
|
|
|
}
|
|
|
|
|
2019-12-04 01:32:14 -08:00
|
|
|
@DoNotStrip
|
2016-12-02 05:47:43 -08:00
|
|
|
public static YogaLogLevel fromInt(int value) {
|
2016-11-15 08:42:33 -08:00
|
|
|
switch (value) {
|
|
|
|
case 0: return ERROR;
|
|
|
|
case 1: return WARN;
|
|
|
|
case 2: return INFO;
|
|
|
|
case 3: return DEBUG;
|
|
|
|
case 4: return VERBOSE;
|
2017-05-03 09:22:35 -07:00
|
|
|
case 5: return FATAL;
|
2017-01-19 16:15:22 -08:00
|
|
|
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
2016-11-15 08:42:33 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|