public final class SyntaxVersionBound extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Field and Description |
|---|---|
String |
reasonStr
A user-friendly explanation of the reason for the bound.
|
SyntaxVersion |
syntaxVersion
The syntax version upper bound (exclusive!).
|
| Constructor and Description |
|---|
SyntaxVersionBound(SyntaxVersion syntaxVersion,
String reasonStr) |
| Modifier and Type | Method and Description |
|---|---|
static SyntaxVersionBound |
selectLower(SyntaxVersionBound origBound,
SyntaxVersionBound newBound)
Returns the lower of the two given bounds.
|
public final SyntaxVersion syntaxVersion
public final String reasonStr
public SyntaxVersionBound(SyntaxVersion syntaxVersion, String reasonStr)
syntaxVersion - The syntax version upper bound (exclusive!).reasonStr - A user-friendly explanation of the reason for the bound.public static SyntaxVersionBound selectLower(@Nullable SyntaxVersionBound origBound, SyntaxVersionBound newBound)