Summary: X-link: https://github.com/facebook/litho/pull/954 X-link: https://github.com/facebook/react-native/pull/39132 Pull Request resolved: https://github.com/facebook/yoga/pull/1347 # Context Reviewed By: NickGerleman, astreet Differential Revision: D48607502 fbshipit-source-id: 79552bc76879d1fc15341423ae6fbadeab2fb7af
34 lines
788 B
Java
34 lines
788 B
Java
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
// @generated by enums.py
|
|
|
|
package com.facebook.yoga;
|
|
|
|
public enum YogaExperimentalFeature {
|
|
WEB_FLEX_BASIS(0),
|
|
ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE(1);
|
|
|
|
private final int mIntValue;
|
|
|
|
YogaExperimentalFeature(int intValue) {
|
|
mIntValue = intValue;
|
|
}
|
|
|
|
public int intValue() {
|
|
return mIntValue;
|
|
}
|
|
|
|
public static YogaExperimentalFeature fromInt(int value) {
|
|
switch (value) {
|
|
case 0: return WEB_FLEX_BASIS;
|
|
case 1: return ABSOLUTE_PERCENTAGE_AGAINST_PADDING_EDGE;
|
|
default: throw new IllegalArgumentException("Unknown enum value: " + value);
|
|
}
|
|
}
|
|
}
|