使用静态工厂方法创建一个msg对象。
唯一的特别之处在于几个方便操纵字段的静态工厂方法。
The only special part is several convenient static factory methods for manufacturing fields.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.
您可以从一个静态工厂方法获得一个MXBean实例,该方法可以使您直接访问本地运行的JVM的MXBean接口。
You can retrieve an MXBean instance from a static factory method that gives you direct access to the locally running JVM's MXBean interface.
bosession类提供创建该类的实例的静态工厂方法,封装用来访问Notes数据库的NotesSession实例。
The BOSession class offers static factory methods to create an instance of this class which encapsulates a Notes Session instance used to access the Notes database.
大概这意味着IndexReader . open,一个静态工厂方法,实例了一个适当的具体的indexreader子类并返回它。
Presumably that means IndexReader.open , a static factory method, instantiates an appropriate concrete subclass of IndexReader and returns it.
工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。
The factory class keeps a static map of the threads that have been connected and can either return the existing connection handle, or create and store the connection handle when called by a thread.
此外,所有生成的接口都有一个包含静态方法的工厂类,比如。
Also, all the generated interfaces have a factory class that contains static methods such as.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
The static methods in the Factory class will then call the instance methods of your factory instance.
MessageDiges t类有一个笨拙的基于工厂的静态方法api,它不是面向对象的,并且你被迫去捕获那些永远都不必捕获的CheckedExceptions。
It has an awkward static method factory-based API instead of an object-oriented one, and you are forced to catch checked exceptions that may never need to be caught.
一个静态的泛型和非泛型类工厂方法?
A static factory method on a generic or a non-generic class?
一个静态的泛型和非泛型类工厂方法?
A static factory method on a generic or a non-generic class?
应用推荐