Create a private method as shown below.
创建一个私有方法,如下所示。
Listing 11 is an example of accessing a private method in a class.
清单11展示了对类的私有方法的访问。
Is a private method returning true if the current user is logged in.
是一个私有方法,如果当前用户已登录则返回true。
You use the private method setUIText() to set all the text on the LogonUI.
可以用私有方法setUIText()设置LogonUI上的所有文本。
Ruby class initialize (constructor) is private method or public method?
宝石类初始化(构造函数)是私人或公共方法方法?
The cipher text string is then passed to the getCipherDataDoc private method.
接着该密码文本字符串传递给getcipherdatadoc私有方法。
As with properties, any attempt to call a private method from outside the containing class causes a fatal error.
与属性一样,尝试从包含类外部调用私有方法将导致致命错误。
The reality is that the main() method simply executes a private method, go(), on an instantiated AtomToRdf class.
实际情况是main()方法只是在一个实例化的AtomToRdf 类上执行了一个私有方法go()。
Unresolved compilation problems: No enclosing instance, Private method from the class is not visible, this$0 cannot be resolved.
解决问题:不编制封闭实例,从类的私有方法是不可见的,这0美元是不能解决的。
If you do not want a particular method to be exposed, change it to a Private method by adding the Private qualifier before the function.
如果不希望公开特定的方法,则将它更改为Private Method,方法是在函数之前添加private限定符。
In other words, a private method cannot be called from another module, and a private field or property cannot be read or written to from another module.
换句话说,一个私人方法不能被称为从另一个模块,和一个私人字段或属性不能被读取或写入到另一个模块。
The populate method is much shorter now, and it reads like an outline of the tasks it needs to perform, with the task implementation residing in private methods.
populate方法现在短多了,看起来像是它需要执行的任务的大纲,任务的实现都放在私有方法中。
Note that the invoke() method is overridden to either take an Object instance, as in Listing 4, or a Class, in the case that the desired private method is also static.
请注意invoke()方法被覆盖成可以接受一个Object实例(如清单4 所示)或一个Class(这时期望的private 方法也是 static 的)。
A subtle but important difference between auth and list is that list is a closure, whereas auth is a private method. (Closures use an equals sign in the definition; methods use parentheses.)
auth和list之间微妙但重要的一点区别是list是一个闭包,而auth是一个私有方法(闭包在定义中使用等号;方法使用圆括号)。
The city list is retrieved from the NWS using a private method if the NWS is online and from a file if the NWS is not online, and the method caches state and city information to improve performance.
在NWS在线的情况下使用私有方法来从 NWS检索城市列表,在 NWS不在线的情况下从文件中检索城市列表,该方法把州和城市信息存在高速缓存中以提高性能。
If somebody wanted to keep a bit of information private, he encrypted the data with a password, a pass phrase, or another basic method.
如果某人想保持少量私有信息,那么他必须使用密码、密码短语或其他基本方法对数据进行加密。
Thus, it is crucial to establish a method to generate valid, reliable and comparable information on private health spending.
因此找到一种可以获取有效、可靠和可比的私人健康开支信息的方法至关重要。
It is legal to get method infos of methods that are not accessible; metadata is always public even if it describes private details.
获得方法的方法信息是合法的;元数据总是公共的,即使它描述了私有详情。
So it is necessary to use a method that securely removes any private information.
因此要用能安全移除所有隐私信息的方法。
Set the download method to Private, and be sure to set the file system path to a location that is not inside the directory /var/www/htdocs.
将下载方法设置为Private,并将文件系统路径设置为不在目录 /var/www/htdocs 中的位置。
Extension Methods - Sometimes you want to take a private helper method and reuse it elsewhere.
扩展方法—有时候你会想要在任何地方都能重用某个私有的helper方法。
In the commit method of the login module, a privileged code clears up the current subject and replaces the principals, and the public and private credentials.
在登录模块的commit方法中,可以使用特权代码清除当前主题并替换相应的主体、公开的和私有的凭据。
The ReleaseObject method internally uses a private ReturnToPool method to restock the pool with the given object, shown in Figure 5 .
ReleaseObject方法在内部使用私有的ReturnToPool 方法,用给定对象重新填充该池,如图5 所示。
Create an "Identification Credential" to relate the public and private key [this is the preferred method, and we will use this method for this use case].
创建一个“IdentificationCredential”来关联公共密匙和私有密匙(这是首选方法,我们将对这个用例使用这种方法)。
The main method then calls the following private static methods in turn, passing in either the UDDI4J proxy or the Publish instance, as appropriate.
接着,main方法依次调用下列私有静态方法(必要时在UDDI4Jproxy或者Publish实例中传递)。
This method accepts an EventQuery object, which is configured with various parameters: the user name, the type of feed (public or private) and the level of detail required in the feed (full or basic).
该方法接受一个EventQuery对象,配置了多个参数:用户名、提要类型(公共或私有)以及提要的详细程度(完整还是基本)。
A dialog box displays, requesting the name and visibility (public, private, protected, or default) of the new method.
这时会出现一个对话框,要求输入这个新方法的名称及可见性(公开的、私有的、保护的或是默认的)。
Note that Zope uses an odd convention to determine which methods are accessible via the Web -- if a method has a doc string, it is Web accessible; otherwise, it's considered private.
请注意Zope采用一种奇怪的约定来确定哪些方法可以通过Web访问 ―如果一个方法包含有一个doc字符串,那么该方法可通过 Web 访问;否则,就被认为是私有的。
You can modify the visibility of methods in the same way as properties, adding public, private, or protected to the method declaration.
修改方法可见度的方法与修改属性可见度的方法一样,即在方法声明中添加public、private或protected。
You can modify the visibility of methods in the same way as properties, adding public, private, or protected to the method declaration.
修改方法可见度的方法与修改属性可见度的方法一样,即在方法声明中添加public、private或protected。
应用推荐