This attribute is a simple text value that encodes the generics information for a class, field, method, or variable.
该属性是一个简单的文本值,为类、字段、方法或变量解码泛型信息。
This expression can be as simple as a variable (as shown in Listing 2) or a method call (like getList()), or a complex expression that involves boolean logic or a ternary operator.
表达式可以简单到就是一个变量(如清单 2 所示)或者是一个方法调用(例如 getList()),亦或是包含布尔逻辑或三目运算符的复杂表达式。
In Listing 1, you saw several simple statements, including a variable initialization, a method invocation (the type method), and a multiplication operation.
在清单1中,您看到了几个简单的语句,包括一个变量初始化、一个方法调用(type方法)和一个乘法操作。
应用推荐