代码搜索:objects
找到约 10,000 项符合「objects」的源代码
代码结果 10,000
www.eeworm.com/read/127767/14336103
txt e055. getting the size of the heap.txt
The heap is the area in memory in which objects are created.
// Get current size of heap in bytes
long heapSize = Runtime.getRuntime().totalMemory();
// Get maximum size of heap
www.eeworm.com/read/127767/14336342
txt e337. associating a value with an object.txt
This example demonstrates how to associate a value with an arbitrary object. The technique involves saving the object and the associated value as a key/value pair in an IdentityHashMap. A HashMap cann
www.eeworm.com/read/127767/14336568
txt e187. starting the rmi registry.txt
Starting up the RMI registry allows you to create and export remote objects.
> rmiregistry
www.eeworm.com/read/127767/14336666
txt e489. cancelling a directory search.txt
This example searches the directory for objects and abandons the search before it completes.
try {
// Specify the attributes to match
// Ask for objects that have attribute "sn
www.eeworm.com/read/127767/14336924
txt e503. starting the name server.txt
If you are using RMI over the Java Remote Method Protocol (JRMP), start up the RMI registry so that you can create and export remote objects.
> rmiregistry
If you are using RMI over the Inter
www.eeworm.com/read/127767/14337206
txt e488. searching a subtree in the directory.txt
This example searches the directory for objects and abandons the search before it completes.
try {
// Specify the attributes to match
// Ask for objects that have attribute "sn
www.eeworm.com/read/127767/14337243
txt e487. searching the directory by using a search filter.txt
This example searches the directory for objects by using a search filter.
try {
// Specify the ids of the attributes to return
String[] attrIDs = {"sn", "telephonenumber", "gol
www.eeworm.com/read/127767/14337399
txt e058. wrapping a primitive type in a wrapper object.txt
In the Java language, the eight primitive types --- boolean, byte, char, short, int, long, float, double --- are not objects. However, in certain situations, objects are required. For example, collect
www.eeworm.com/read/127767/14337481
txt e486. performing a basic directory search.txt
This example searches the directory for objects that have certain specified attributes.
try {
// Specify the ids of the attributes to return
String[] attrIDs = {"sn", "telephon