Class constants are always public, so you can't use the visibility keywords.
类常量始终为public,所以不能使用可见度关键字。
A string constant identifies the specific event, and you can have one or more constants in each event class.
一个字符串常量识别一个特定事件,一个事件类中可以有一个或多个常量。
Class variables must also be used with care, but they are precisely the right tool for introducing names for constants, as discussed in the following section.
类变量同样需要小心使用,但它们又恰恰是引入下一部分要讨论的常量命名的最好工具。
The base class also defines some simple constants for the names of the tags.
基类还为标记的名称定义了一些简单的常量。
Various fonts are declared as static constants in this class.
各种字体都在这个类中声明为静态常数。
You can put all of them in a single class or interface (to centralize all of your message definitions in a single location), or you can place these constants in the classes where they are used.
可以将它们放在单独的类或接口中(将所有消息定义集中到一个地点),也可以放在使用到它们的类中。
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.
支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
The class no longer requires a method, because the constants go into static field initializers in the dex file.
这个类将不会调用方法,因为这些常量直接写入了类文件静态属性初始化中,这个初始化直接由虚拟机来处理。
Each token type is represented by a constant in the TokenType class. Constants can include.
每种标志类型都用tokentype类中的一个常数表示,其中包括。
For ease of use, we define a EventConstants class to declare some useful constants such as topic strings.
为便于使用,我们定义了一个eventconstants类来声明一些有用的常量,例如主题字符串。
This class supports changing the date by different settings via constants in the Calendar class; for example, Calendar.WEEK_OF_MONTH to change the date one week at a time.
该类支持通过将 Calendar类中的常数设置为不同的值来更改日期;例如, Calendar.WEEK_OF_MONTH每次将日期更改一周。
Notice that the values from the Configuration fields are integers that are matched to specific constants from the Configuration class.
请注意,配置字段的值是一些匹配Configuration类里特定的常量的整数。
In this case the ResourceBundle class (see Listing 3) can be used to look up translated string constants and to include the internationalized strings in the XML data.
在这种情况下,可以使用resourcebundle类(请参阅清单3)来查找已翻译好的字符串常量,并将国际化字符串置入xml数据中。
It contains only one class (XMLConstants) that defines useful constants.
它只包括一个类(XMLConstants),该类定义了一些有用的常量。
The WebSphere-provided class NotificationConstants contains useful constants for notifications.
WebSphere提供的类NotificationConstants包含了一些有用的通知常量。
Notice in the following code how the class uses the constants you defined in the PreferencesConstants class.
在下面的代码中,请注意该类是如何使用您在PreferencesConstants 类中定义的常量的。
Thankfully, Hibernate provides a way to associate class names to string constants using the <meta-value> XML element.
谢天谢地,Hibernate 还提供了一个用 <meta-value>XML元素把类名映射到字符串约束的方法。
In fact, this is precisely what's taking place: in a functional language, functions are first-class concepts, like variables and constants, and so are syntactically treated as such.
事实上,真正发生的事情是:在函数语言中,就像变量和常量一样,函数是一级概念,所以语法上也是一样地处理。
Class names and constants in module scope should be capitalized, while method names and variables should start with a lower case letter.
类名和模块中的常量的第一个字母应该大写,而方法名和变量应该开始用小写字母。
Constants should be camel-case with all words capitalized and prefixed by the related class name for clarity.
常量应该使用驼峰格式(首字母大写)命名并且增加相关类的前缀。
PdfBoxHelperSuperClass: This helper super class has methods and constants that make it simple to create a PDF text verification point in a test script.
PdfBoxHelperSuperClass:该Helper超类拥有的方法和变量,可以使在文本脚本中创建PD f文本确认点变得容易。
The javax.xml.datatypes package also defines the DatatypeConstants utility class that contains basic data type values as constants.
datatypes包还定义了DatatypeConstants 工具类,以常量定义了基本的数据类型值。
Use P/Invoke to wrap the API functions, constants, and structure definitions as static members of a managed class.
使用P /调用的API函数,常量和结构的定义为静态成员的管理类。
An interface only contains abstract methods and constants. An abstract method is one which does not have an implementation but requires that a sub-class provide it.
只有一个接口包含抽象方法和常量。一个抽象方法是一种没有实现,但需要一个子类,它提供。
The existence of particular solutions for a class of Riccati equations is studied by means of variation of constants and initial integral methods.
从一阶线性微分方程结构特点入手,给出了求其通解的常数变易法的数学原理,并简化了积分因子法。
The Modifier class provides static methods and constants to decode class and member access modifiers.
Modifier类提供了静态方法和常量来对类和成员访问修饰符进行编码。
Constants defined within modules are imported as public constant static members of a class with the same name as the original module.
在模组内定义的常数会汇入,做为与原来模组具有同样名称之类别的公用常数静态成员。
Constants defined within modules are imported as public constant static members of a class with the same name as the original module.
在模组内定义的常数会汇入,做为与原来模组具有同样名称之类别的公用常数静态成员。
应用推荐