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.
Programs can only use Factory when preview features are enabled.
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 Details

    • Factory

      public Factory()
  • Method Details

    • createPoint

      public static PointPREVIEW createPoint(int x, int y)
      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 - paramx
      y - paramy
      Returns:
      the R
    • getName

      public static String 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