这意味着可以很明显地确定哪些包是私有的,OSGi 实现了这一点。
This means it is very clear which packages are private and OSGi enforces this.
如果你在高性能的Hotspot中使用这些代码,可以通过声明被内部类访问的字段和成员为包访问权限,而非私有。
If you're using code like this in a performance hotspot, you can avoid the overhead by declaring fields and methods accessed by inner classes to have package access, rather than private access.
模块系统:包定义和私有定义。
auth和list之间微妙但重要的一点区别是list是一个闭包,而auth是一个私有方法(闭包在定义中使用等号;方法使用圆括号)。
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.)
共有网络中的一台计算机要发送一个数据包到私有网络。
A computer on the public network sends a packet to the private network.
路由器并不会直接转发数据包到未注册地址,因为它们使用未注册地址就意味着这些网络是私有的,并不想被外界所知道。
Routers do not forward packets to unregistered addresses since those networks are meant for private use and are not supposed to be advertised to outside world.
这种方法的一个有趣的副作用是允许通过闭包访问类的私有成员和受保护成员,这有利于对类执行单元测试。
One interesting side effect of this approach is that it allows us to access private and protected members of a class via a closure, which can be handy for unit testing classes.
具有缺省可视性的成员函数对于同一个软件包中所有其它类实际上是公有的,而对于该软件包外部的类,它是私有的。
A member function with default visibility is effectively public to all other classes within the same package, but private to classes external to the package.
法案从出售资产,市政服务私有化,2026年起推迟退休年龄,再到为雇佣年轻人的公司提供税收优惠等无所不包。
They include everything from selling assets and privatizing municipal services to raising the retirement age by 2026 and offering tax breaks to companies that hire young workers.
其次,模块声明要公开哪些包,因此没有公开的包是私有的。
Second, a module declares which packages it exposes, so packages that are not exposed are private.
在私有内部内中,考虑用包访问权限替代私有访问权限。
Consider Package Instead of Private Access with Private Inner classes.
使用闭包主要是为了设计私有的方法和变量。
Using closures designed primarily to private methods and variables.
示例8 - 6是第二个闭包示例。它演示了像上面那样私有保存的值可以被不止一个函数访问到。
Example 8-6 is a second closure example. It demonstrates that private persistent variables like the one used above can be Shared by more than one function.
为了允许私有数据格式到一个常用的格式间的一个快速转换,需要满足这个目的并能够容易地整合到流程系统中的工具包。
To allow for a quick conversion of the proprietary data format into a commonly used one, toolkits are required that reach this aim and can be easily integrated into workflow systems.
为了允许私有数据格式到一个常用的格式间的一个快速转换,需要满足这个目的并能够容易地整合到流程系统中的工具包。
To allow for a quick conversion of the proprietary data format into a commonly used one, toolkits are required that reach this aim and can be easily integrated into workflow systems.
应用推荐