Package com.anylogic.engine.presentation
- java.lang.Object
- java.lang.Record
- com.anylogic.engine.presentation.ShapeInspect.FakeInspectedShape
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ShapeInspect
public static record ShapeInspect.FakeInspectedShape(double x, double y, Object originalShape) extends Record implements Serializable
- See Also:
- Serialized Form
Constructor | Description |
---|---|
FakeInspectedShape |
Creates an instance of a
FakeInspectedShape record class. |
Modifier and Type | Method | Description |
---|---|---|
final boolean | equals |
Indicates whether some other object is "equal to" this one.
|
final int | hashCode() |
Returns a hash code value for this object.
|
Object | originalShape() |
Returns the value of the
originalShape record component. |
final String | toString() |
Returns a string representation of this record class.
|
double | x() |
Returns the value of the
x record component. |
double | y() |
Returns the value of the
y record component. |
public FakeInspectedShape(double x, double y, Object originalShape)
Creates an instance of a
FakeInspectedShape
record class.- Parameters:
x
- the value for thex
record componenty
- the value for they
record componentoriginalShape
- the value for theoriginalShape
record component
public final String toString()
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
public final int hashCode()
Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
public final boolean equals(Object o)
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with
Objects::equals(Object,Object)
; primitive components are compared with '=='.public double x()
Returns the value of the
x
record component.- Returns:
- the value of the
x
record component
public double y()
Returns the value of the
y
record component.- Returns:
- the value of the
y
record component
public Object originalShape()
Returns the value of the
originalShape
record component.- Returns:
- the value of the
originalShape
record component