You can use constants to provide meaningful names, instead of Numbers, making your code more readable.
可以使用常数提供具有含义的名称而不是数值,从而使代码更具可读性。
Of course, you could use constants directly in the function body instead of parameters if you don't need the additional flexibility.
当然,如果您不需要更多的灵活性,那么可以在函数主体中直接使用常量,而不是参数。
One way you can further improve the manageability of your servlet/JSP application is to use constants for referencing all your JSP page destinations.
能够进一步提高servlet/JSP应用程序的可管理性的一种方式就是使用常量来引用所有 JSP页面目标。
Strings constants with the same value are guaranteed by the VM specification to use the same instance.
具有相同值的字符串常量是由VM规范保证使用同一个实例的。
Actually all you ever use are JPA annotations and some of its constants.
实际上曾使用的都是jpa注释和它的常量。
Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.
支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
Finally, be aware that it may not always be best to use a resource to represent such constants.
最后,要知道使用资源表示这类常量可能并不总是最好的办法。
I recommend the use of bit fields rather than mask fields or hexadecimal constants.
我建议使用位域,而不要使用掩码域或16进制的常量。
For a Unicode database, you should use host variables instead of using string constants.
对于Unicode数据库,您应使用主机变量来代替字符串常量。
With Jython you can use Python syntax to access the constants, classes, and methods of the API.
使用Jython,您可以使用Python语法来获取API中的常量、类以及方法。
For ease of use, we define a EventConstants class to declare some useful constants such as topic strings.
为便于使用,我们定义了一个eventconstants类来声明一些有用的常量,例如主题字符串。
As a general rule, anywhere constants are in use, such as in places you are currently using the switch code to switch constants.
一条普遍规则是,任何使用常量的地方,例如目前用switch代码切换常量的地方。
If a source file has a namespace declaration, then all references to classes, functions, and constants use the namespace semantics.
如果源代码文件中有名称空间声明,那么对类、函数和常量的所有引用都使用名称空间语义。
Among the constants is Germany’s post-war aversion to the use of military force, sharpened by its unpopular deployment in Afghanistan.
目前德国的特点之一就是战后对使用军事力量的反感,而德国出兵阿富汗更是加剧了人民的反感。
So it's important to write out the equation you use, you need to write out the constants that you use to fill in that equation.
因此重要的是写出你所用的公式,你需写出,你用在公式中的常数。
For documentation about which constants to use with each field, refer to the appropriate field in the Configuration reference.
对于文档中的每个字段使用那个常量,请在Configuration类中参阅相应的字段。
Class constants are always public, so you can't use the visibility keywords.
类常量始终为public,所以不能使用可见度关键字。
Alternatively, you can also include specific classes using the include_class function, which doesn't pollute the namespace with constants for classes you'll never use.
做为另外一种选择,你还可以使用include_class功能包含指定的类,这样就不会因你没有使用某些类,而污染了名称空间。
An advanced use of getters is to obtain the values of constants.
getter的一种高级用法是获取常数值。
For maximum efficiency, use contiguous constants that start on a multiple of 16.
为取得最大效率,请使用从16的倍数开始的连续常数。
The current at the channel base is specified, and use two time constants can get the much better shapes than single time constant.
模型对于特定的雷电通道底部电流,采用了汉时间常数,取得了比单时间常数更好的拟合效果。
In order to improve the tide prediction, it is necessary to use new tide constants obtained from the nearest tide data.
为了提高天文潮推算的精度,必须采用最接近推算年份的调和常数进行潮汐推算。
Use the constants of this enumeration to set up search preferences for referral chasing.
使用此枚举的常数可建立检索跟踪的搜索首选项。
For example, you can declare an enumeration for a set of integer constants associated with the days of the week, and then use the names of the days rather than their integer values in your code.
例如,您可以宣告列举来当做一组与每周日期关联的整数常数,接著在程序码中使用日期的名称而不是它们的整数值。
Use the project Settings for defining conditional compilation constants.
使用项目设置定义条件编译常量。
Use P/Invoke to wrap the API functions, constants, and structure definitions as static members of a managed class.
使用P /调用的API函数,常量和结构的定义为静态成员的管理类。
Using the radio buttons in this section, you can set the software to use linear, quadratic or cubic fits for the plate constants. Small field CCDs usually require no more than a linear fit.
使用本类里的单选按钮,你可以选择使用底片常数的一次、二次或三次拟合。
Use variables and constants to configure the nec-2 input data.
使用变量和常量配置的NEC - 2输入数据。
Use variables and constants to configure the nec-2 input data.
使用变量和常量配置的NEC - 2输入数据。
应用推荐