Package use
Class Factory
java.lang.Object
use.Factory
public class Factory extends Object
Factory
relies on preview features of the Java platform:
Factory
refers to one or more types which are declared using a preview feature of the Java language:Point
.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Factory for various interesting stuff. Note this class won't even load without
--enable-preview
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePoint(int x, int y)
Create a Point.static String
getName()
Returns the name of this program.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
createPoint
Create a Point. Please note this record is an experimental API and may go away or be changed if a better API is designed, or if the Records Java language feature fails to graduate.- Parameters:
x
- paramxy
- paramy- Returns:
- the R
-
getName
Returns the name of this program. Please note that despite this method is s stable API, it cannot be used unless--enable-preview
is provided to the Java launcher on the command line.- Returns:
- the name of this program
-
Factory
when preview features are enabled.