GeezerVison is showing docs.oracle.com — AffineTransform (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
java.awt.geom
Class AffineTransform
-
-
Field Summary
Fields
| Modifier and Type |
Field |
Description |
static int |
TYPE_FLIP |
This flag bit indicates that the transform defined by this object
performs a mirror image flip about some axis which changes the
normally right handed coordinate system into a left handed
system in addition to the conversions indicated by other flag bits.
|
static int |
TYPE_GENERAL_ROTATION |
This flag bit indicates that the transform defined by this object
performs a rotation by an arbitrary angle in addition to the
conversions indicated by other flag bits.
|
static int |
TYPE_GENERAL_SCALE |
This flag bit indicates that the transform defined by this object
performs a general scale in addition to the conversions indicated
by other flag bits.
|
static int |
TYPE_GENERAL_TRANSFORM |
This constant indicates that the transform defined by this object
performs an arbitrary conversion of the input coordinates.
|
static int |
TYPE_IDENTITY |
This constant indicates that the transform defined by this object
is an identity transform.
|
static int |
TYPE_MASK_ROTATION |
This constant is a bit mask for any of the rotation flag bits.
|
static int |
TYPE_MASK_SCALE |
This constant is a bit mask for any of the scale flag bits.
|
static int |
TYPE_QUADRANT_ROTATION |
This flag bit indicates that the transform defined by this object
performs a quadrant rotation by some multiple of 90 degrees in
addition to the conversions indicated by other flag bits.
|
static int |
TYPE_TRANSLATION |
This flag bit indicates that the transform defined by this object
performs a translation in addition to the conversions indicated
by other flag bits.
|
static int |
TYPE_UNIFORM_SCALE |
This flag bit indicates that the transform defined by this object
performs a uniform scale in addition to the conversions indicated
by other flag bits.
|
-
Constructor Summary
Constructors
| Constructor |
Description |
AffineTransform() |
Constructs a new AffineTransform representing the
Identity transformation.
|
AffineTransform(AffineTransform Tx) |
Constructs a new AffineTransform that is a copy of
the specified AffineTransform object.
|
AffineTransform(double[] flatmatrix) |
Constructs a new AffineTransform from an array of
double precision values representing either the 4 non-translation
entries or the 6 specifiable entries of the 3x3 transformation
matrix.
|
AffineTransform(double m00,
double m10,
double m01,
double m11,
double m02,
double m12) |
Constructs a new AffineTransform from 6 double
precision values representing the 6 specifiable entries of the 3x3
transformation matrix.
|
AffineTransform(float[] flatmatrix) |
Constructs a new AffineTransform from an array of
floating point values representing either the 4 non-translation
entries or the 6 specifiable entries of the 3x3 transformation
matrix.
|
AffineTransform(float m00,
float m10,
float m01,
float m11,
float m02,
float m12) |
Constructs a new AffineTransform from 6 floating point
values representing the 6 specifiable entries of the 3x3
transformation matrix.
|
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
Object |
clone() |
Returns a copy of this AffineTransform object.
|
void |
concatenate(AffineTransform Tx) |
Concatenates an AffineTransform Tx to
this AffineTransform Cx in the most commonly useful
way to provide a new user space
that is mapped to the former user space by Tx.
|
AffineTransform |
createInverse() |
Returns an AffineTransform object representing the
inverse transformation.
|
Shape |
createTransformedShape(Shape pSrc) |
Returns a new Shape object defined by the geometry of the
specified Shape after it has been transformed by
this transform.
|
void |
deltaTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
Transforms an array of relative distance vectors by this
transform.
|
Point2D |
deltaTransform(Point2D ptSrc,
Point2D ptDst) |
Transforms the relative distance vector specified by
ptSrc and stores the result in ptDst.
|
boolean |
equals(Object obj) |
Returns true if this AffineTransform
represents the same affine coordinate transform as the specified
argument.
|
double |
getDeterminant() |
Returns the determinant of the matrix representation of the transform.
|
void |
getMatrix(double[] flatmatrix) |
Retrieves the 6 specifiable values in the 3x3 affine transformation
matrix and places them into an array of double precisions values.
|
static AffineTransform |
getQuadrantRotateInstance(int numquadrants) |
Returns a transform that rotates coordinates by the specified
number of quadrants.
|
static AffineTransform |
getQuadrantRotateInstance(int numquadrants,
double anchorx,
double anchory) |
Returns a transform that rotates coordinates by the specified
number of quadrants around the specified anchor point.
|
static AffineTransform |
getRotateInstance(double theta) |
Returns a transform representing a rotation transformation.
|
static AffineTransform |
getRotateInstance(double vecx,
double vecy) |
Returns a transform that rotates coordinates according to
a rotation vector.
|
static AffineTransform |
getRotateInstance(double theta,
double anchorx,
double anchory) |
Returns a transform that rotates coordinates around an anchor point.
|
static AffineTransform |
getRotateInstance(double vecx,
double vecy,
double anchorx,
double anchory) |
Returns a transform that rotates coordinates around an anchor
point according to a rotation vector.
|
static AffineTransform |
getScaleInstance(double sx,
double sy) |
Returns a transform representing a scaling transformation.
|
double |
getScaleX() |
Returns the X coordinate scaling element (m00) of the 3x3
affine transformation matrix.
|
double |
getScaleY() |
Returns the Y coordinate scaling element (m11) of the 3x3
affine transformation matrix.
|
static AffineTransform |
getShearInstance(double shx,
double shy) |
Returns a transform representing a shearing transformation.
|
double |
getShearX() |
Returns the X coordinate shearing element (m01) of the 3x3
affine transformation matrix.
|
double |
getShearY() |
Returns the Y coordinate shearing element (m10) of the 3x3
affine transformation matrix.
|
static AffineTransform |
getTranslateInstance(double tx,
double ty) |
Returns a transform representing a translation transformation.
|
double |
getTranslateX() |
Returns the X coordinate of the translation element (m02) of the
3x3 affine transformation matrix.
|
double |
getTranslateY() |
Returns the Y coordinate of the translation element (m12) of the
3x3 affine transformation matrix.
|
int |
getType() |
Retrieves the flag bits describing the conversion properties of
this transform.
|
int |
hashCode() |
Returns the hashcode for this transform.
|
void |
inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
Inverse transforms an array of double precision coordinates by
this transform.
|
Point2D |
inverseTransform(Point2D ptSrc,
Point2D ptDst) |
Inverse transforms the specified ptSrc and stores the
result in ptDst.
|
void |
invert() |
Sets this transform to the inverse of itself.
|
boolean |
isIdentity() |
Returns true if this AffineTransform is
an identity transform.
|
void |
preConcatenate(AffineTransform Tx) |
Concatenates an AffineTransform Tx to
this AffineTransform Cx
in a less commonly used way such that Tx modifies the
coordinate transformation relative to the absolute pixel
space rather than relative to the existing user space.
|
void |
quadrantRotate(int numquadrants) |
Concatenates this transform with a transform that rotates
coordinates by the specified number of quadrants.
|
void |
quadrantRotate(int numquadrants,
double anchorx,
double anchory) |
Concatenates this transform with a transform that rotates
coordinates by the specified number of quadrants around
the specified anchor point.
|
void |
rotate(double theta) |
Concatenates this transform with a rotation transformation.
|
void |
rotate(double vecx,
double vecy) |
Concatenates this transform with a transform that rotates
coordinates according to a rotation vector.
|
void |
rotate(double theta,
double anchorx,
double anchory) |
Concatenates this transform with a transform that rotates
coordinates around an anchor point.
|
void |
rotate(double vecx,
double vecy,
double anchorx,
double anchory) |
Concatenates this transform with a transform that rotates
coordinates around an anchor point according to a rotation
vector.
|
void |
scale(double sx,
double sy) |
Concatenates this transform with a scaling transformation.
|
void |
setToIdentity() |
Resets this transform to the Identity transform.
|
void |
setToQuadrantRotation(int numquadrants) |
Sets this transform to a rotation transformation that rotates
coordinates by the specified number of quadrants.
|
void |
setToQuadrantRotation(int numquadrants,
double anchorx,
double anchory) |
Sets this transform to a translated rotation transformation
that rotates coordinates by the specified number of quadrants
around the specified anchor point.
|
void |
setToRotation(double theta) |
Sets this transform to a rotation transformation.
|
void |
setToRotation(double vecx,
double vecy) |
Sets this transform to a rotation transformation that rotates
coordinates according to a rotation vector.
|
void |
setToRotation(double theta,
double anchorx,
double anchory) |
Sets this transform to a translated rotation transformation.
|
void |
setToRotation(double vecx,
double vecy,
double anchorx,
double anchory) |
Sets this transform to a rotation transformation that rotates
coordinates around an anchor point according to a rotation
vector.
|
void |
setToScale(double sx,
double sy) |
Sets this transform to a scaling transformation.
|
void |
setToShear(double shx,
double shy) |
Sets this transform to a shearing transformation.
|
void |
setToTranslation(double tx,
double ty) |
Sets this transform to a translation transformation.
|
void |
setTransform(AffineTransform Tx) |
Sets this transform to a copy of the transform in the specified
AffineTransform object.
|
void |
setTransform(double m00,
double m10,
double m01,
double m11,
double m02,
double m12) |
Sets this transform to the matrix specified by the 6
double precision values.
|
void |
shear(double shx,
double shy) |
Concatenates this transform with a shearing transformation.
|
String |
toString() |
Returns a String that represents the value of this
Object.
|
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
Transforms an array of double precision coordinates by this transform.
|
void |
transform(double[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Transforms an array of double precision coordinates by this transform
and stores the results into an array of floats.
|
void |
transform(float[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts) |
Transforms an array of floating point coordinates by this transform
and stores the results into an array of doubles.
|
void |
transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts) |
Transforms an array of floating point coordinates by this transform.
|
void |
transform(Point2D[] ptSrc,
int srcOff,
Point2D[] ptDst,
int dstOff,
int numPts) |
Transforms an array of point objects by this transform.
|
Point2D |
transform(Point2D ptSrc,
Point2D ptDst) |
Transforms the specified ptSrc and stores the result
in ptDst.
|
void |
translate(double tx,
double ty) |
Concatenates this transform with a translation transformation.
|
-
-
Field Detail
-
TYPE_FLIP
public static final int TYPE_FLIP
This flag bit indicates that the transform defined by this object
performs a mirror image flip about some axis which changes the
normally right handed coordinate system into a left handed
system in addition to the conversions indicated by other flag bits.
A right handed coordinate system is one where the positive X
axis rotates counterclockwise to overlay the positive Y axis
similar to the direction that the fingers on your right hand
curl when you stare end on at your thumb.
A left handed coordinate system is one where the positive X
axis rotates clockwise to overlay the positive Y axis similar
to the direction that the fingers on your left hand curl.
There is no mathematical way to determine the angle of the
original flipping or mirroring transformation since all angles
of flip are identical given an appropriate adjusting rotation.
- Since:
- 1.2
- See Also:
TYPE_IDENTITY,
TYPE_TRANSLATION,
TYPE_UNIFORM_SCALE,
TYPE_GENERAL_SCALE,
TYPE_QUADRANT_ROTATION,
TYPE_GENERAL_ROTATION,
TYPE_GENERAL_TRANSFORM,
getType(),
Constant Field Values
-
Constructor Detail
-
AffineTransform
@ConstructorProperties(value={"scaleX","shearY","shearX","scaleY","translateX","translateY"})
public AffineTransform(float m00,
float m10,
float m01,
float m11,
float m02,
float m12)
Constructs a new AffineTransform from 6 floating point
values representing the 6 specifiable entries of the 3x3
transformation matrix.
- Parameters:
m00 - the X coordinate scaling element of the 3x3 matrix
m10 - the Y coordinate shearing element of the 3x3 matrix
m01 - the X coordinate shearing element of the 3x3 matrix
m11 - the Y coordinate scaling element of the 3x3 matrix
m02 - the X coordinate translation element of the 3x3 matrix
m12 - the Y coordinate translation element of the 3x3 matrix
- Since:
- 1.2
-
AffineTransform
public AffineTransform(float[] flatmatrix)
Constructs a new AffineTransform from an array of
floating point values representing either the 4 non-translation
entries or the 6 specifiable entries of the 3x3 transformation
matrix. The values are retrieved from the array as
{ m00 m10 m01 m11 [m02 m12]}.
- Parameters:
flatmatrix - the float array containing the values to be set
in the new AffineTransform object. The length of the
array is assumed to be at least 4. If the length of the array is
less than 6, only the first 4 values are taken. If the length of
the array is greater than 6, the first 6 values are taken.
- Since:
- 1.2
-
AffineTransform
public AffineTransform(double m00,
double m10,
double m01,
double m11,
double m02,
double m12)
Constructs a new AffineTransform from 6 double
precision values representing the 6 specifiable entries of the 3x3
transformation matrix.
- Parameters:
m00 - the X coordinate scaling element of the 3x3 matrix
m10 - the Y coordinate shearing element of the 3x3 matrix
m01 - the X coordinate shearing element of the 3x3 matrix
m11 - the Y coordinate scaling element of the 3x3 matrix
m02 - the X coordinate translation element of the 3x3 matrix
m12 - the Y coordinate translation element of the 3x3 matrix
- Since:
- 1.2
-
AffineTransform
public AffineTransform(double[] flatmatrix)
Constructs a new AffineTransform from an array of
double precision values representing either the 4 non-translation
entries or the 6 specifiable entries of the 3x3 transformation
matrix. The values are retrieved from the array as
{ m00 m10 m01 m11 [m02 m12]}.
- Parameters:
flatmatrix - the double array containing the values to be set
in the new AffineTransform object. The length of the
array is assumed to be at least 4. If the length of the array is
less than 6, only the first 4 values are taken. If the length of
the array is greater than 6, the first 6 values are taken.
- Since:
- 1.2
-
Method Detail
-
getRotateInstance
public static AffineTransform getRotateInstance(double vecx,
double vecy,
double anchorx,
double anchory)
Returns a transform that rotates coordinates around an anchor
point according to a rotation vector.
All coordinates rotate about the specified anchor coordinates
by the same amount.
The amount of rotation is such that coordinates along the former
positive X axis will subsequently align with the vector pointing
from the origin to the specified vector coordinates.
If both vecx and vecy are 0.0,
an identity transform is returned.
This operation is equivalent to calling:
AffineTransform.getRotateInstance(Math.atan2(vecy, vecx),
anchorx, anchory);
- Parameters:
vecx - the X coordinate of the rotation vector
vecy - the Y coordinate of the rotation vector
anchorx - the X coordinate of the rotation anchor point
anchory - the Y coordinate of the rotation anchor point
- Returns:
- an
AffineTransform object that rotates
coordinates around the specified point according to the
specified rotation vector.
- Since:
- 1.6
-
getType
public int getType()
Retrieves the flag bits describing the conversion properties of
this transform.
The return value is either one of the constants TYPE_IDENTITY
or TYPE_GENERAL_TRANSFORM, or a combination of the
appropriate flag bits.
A valid combination of flag bits is an exclusive OR operation
that can combine
the TYPE_TRANSLATION flag bit
in addition to either of the
TYPE_UNIFORM_SCALE or TYPE_GENERAL_SCALE flag bits
as well as either of the
TYPE_QUADRANT_ROTATION or TYPE_GENERAL_ROTATION flag bits.
- Returns:
- the OR combination of any of the indicated flags that
apply to this transform
- Since:
- 1.2
- See Also:
TYPE_IDENTITY,
TYPE_TRANSLATION,
TYPE_UNIFORM_SCALE,
TYPE_GENERAL_SCALE,
TYPE_QUADRANT_ROTATION,
TYPE_GENERAL_ROTATION,
TYPE_GENERAL_TRANSFORM
-
getMatrix
public void getMatrix(double[] flatmatrix)
Retrieves the 6 specifiable values in the 3x3 affine transformation
matrix and places them into an array of double precisions values.
The values are stored in the array as
{ m00 m10 m01 m11 m02 m12 }.
An array of 4 doubles can also be specified, in which case only the
first four elements representing the non-transform
parts of the array are retrieved and the values are stored into
the array as { m00 m10 m01 m11 }
- Parameters:
flatmatrix - the double array used to store the returned
values.
- Since:
- 1.2
- See Also:
getScaleX(),
getScaleY(),
getShearX(),
getShearY(),
getTranslateX(),
getTranslateY()
-
setTransform
public void setTransform(double m00,
double m10,
double m01,
double m11,
double m02,
double m12)
Sets this transform to the matrix specified by the 6
double precision values.
- Parameters:
m00 - the X coordinate scaling element of the 3x3 matrix
m10 - the Y coordinate shearing element of the 3x3 matrix
m01 - the X coordinate shearing element of the 3x3 matrix
m11 - the Y coordinate scaling element of the 3x3 matrix
m02 - the X coordinate translation element of the 3x3 matrix
m12 - the Y coordinate translation element of the 3x3 matrix
- Since:
- 1.2
-
transform
public void transform(Point2D[] ptSrc,
int srcOff,
Point2D[] ptDst,
int dstOff,
int numPts)
Transforms an array of point objects by this transform.
If any element of the ptDst array is
null, a new Point2D object is allocated
and stored into that element before storing the results of the
transformation.
Note that this method does not take any precautions to
avoid problems caused by storing results into Point2D
objects that will be used as the source for calculations
further down the source array.
This method does guarantee that if a specified Point2D
object is both the source and destination for the same single point
transform operation then the results will not be stored until
the calculations are complete to avoid storing the results on
top of the operands.
If, however, the destination Point2D object for one
operation is the same object as the source Point2D
object for another operation further down the source array then
the original coordinates in that point are overwritten before
they can be converted.
- Parameters:
ptSrc - the array containing the source point objects
ptDst - the array into which the transform point objects are
returned
srcOff - the offset to the first point object to be
transformed in the source array
dstOff - the offset to the location of the first
transformed point object that is stored in the destination array
numPts - the number of point objects to be transformed
- Since:
- 1.2
-
transform
public void transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms an array of floating point coordinates by this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are overwritten by a
previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the specified
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates.
dstPts - the array into which the transformed point coordinates
are returned. Each point is stored as a pair of x, y
coordinates.
srcOff - the offset to the first point to be transformed
in the source array
dstOff - the offset to the location of the first
transformed point that is stored in the destination array
numPts - the number of points to be transformed
- Since:
- 1.2
-
transform
public void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms an array of double precision coordinates by this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the indicated
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates.
dstPts - the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates.
srcOff - the offset to the first point to be transformed
in the source array
dstOff - the offset to the location of the first
transformed point that is stored in the destination array
numPts - the number of point objects to be transformed
- Since:
- 1.2
-
transform
public void transform(float[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms an array of floating point coordinates by this transform
and stores the results into an array of doubles.
The coordinates are stored in the arrays starting at the specified
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates.
dstPts - the array into which the transformed point coordinates
are returned. Each point is stored as a pair of x, y
coordinates.
srcOff - the offset to the first point to be transformed
in the source array
dstOff - the offset to the location of the first
transformed point that is stored in the destination array
numPts - the number of points to be transformed
- Since:
- 1.2
-
transform
public void transform(double[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms an array of double precision coordinates by this transform
and stores the results into an array of floats.
The coordinates are stored in the arrays starting at the specified
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates.
dstPts - the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates.
srcOff - the offset to the first point to be transformed
in the source array
dstOff - the offset to the location of the first
transformed point that is stored in the destination array
numPts - the number of point objects to be transformed
- Since:
- 1.2
-
inverseTransform
public Point2D inverseTransform(Point2D ptSrc,
Point2D ptDst)
throws NoninvertibleTransformException
Inverse transforms the specified ptSrc and stores the
result in ptDst.
If ptDst is null, a new
Point2D object is allocated and then the result of the
transform is stored in this object.
In either case, ptDst, which contains the transformed
point, is returned for convenience.
If ptSrc and ptDst are the same
object, the input point is correctly overwritten with the
transformed point.
- Parameters:
ptSrc - the point to be inverse transformed
ptDst - the resulting transformed point
- Returns:
ptDst, which contains the result of the
inverse transform.
- Throws:
NoninvertibleTransformException - if the matrix cannot be
inverted.
- Since:
- 1.2
-
inverseTransform
public void inverseTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
throws NoninvertibleTransformException
Inverse transforms an array of double precision coordinates by
this transform.
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the specified
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source point coordinates.
Each point is stored as a pair of x, y coordinates.
dstPts - the array into which the transformed point
coordinates are returned. Each point is stored as a pair of
x, y coordinates.
srcOff - the offset to the first point to be transformed
in the source array
dstOff - the offset to the location of the first
transformed point that is stored in the destination array
numPts - the number of point objects to be transformed
- Throws:
NoninvertibleTransformException - if the matrix cannot be
inverted.
- Since:
- 1.2
-
deltaTransform
public void deltaTransform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms an array of relative distance vectors by this
transform.
A relative distance vector is transformed without applying the
translation components of the affine transformation matrix
using the following equations:
[ x' ] [ m00 m01 (m02) ] [ x ] [ m00x + m01y ]
[ y' ] = [ m10 m11 (m12) ] [ y ] = [ m10x + m11y ]
[ (1) ] [ (0) (0) ( 1 ) ] [ (1) ] [ (1) ]
The two coordinate array sections can be exactly the same or
can be overlapping sections of the same array without affecting the
validity of the results.
This method ensures that no source coordinates are
overwritten by a previous operation before they can be transformed.
The coordinates are stored in the arrays starting at the indicated
offset in the order [x0, y0, x1, y1, ..., xn, yn].
- Parameters:
srcPts - the array containing the source distance vectors.
Each vector is stored as a pair of relative x, y coordinates.
dstPts - the array into which the transformed distance vectors
are returned. Each vector is stored as a pair of relative
x, y coordinates.
srcOff - the offset to the first vector to be transformed
in the source array
dstOff - the offset to the location of the first
transformed vector that is stored in the destination array
numPts - the number of vector coordinate pairs to be
transformed
- Since:
- 1.2
-
toString
public String toString()
Returns a String that represents the value of this
Object.
- Overrides:
toString in class Object
- Returns:
- a
String representing the value of this
Object.
- Since:
- 1.2
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|