Record Class ClientConfig.CameraState
java.lang.Object
java.lang.Record
fr.pacdu.pacpackquests.client.config.ClientConfig.CameraState
- Enclosing class:
ClientConfig
-
Constructor Summary
ConstructorsConstructorDescriptionCameraState(double panX, double panY, float zoom) Creates an instance of aCameraStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublepanX()Returns the value of thepanXrecord component.doublepanY()Returns the value of thepanYrecord component.final StringtoString()Returns a string representation of this record class.floatzoom()Returns the value of thezoomrecord component.
-
Constructor Details
-
CameraState
public CameraState(double panX, double panY, float zoom) Creates an instance of aCameraStaterecord class.- Parameters:
panX- the value for thepanXrecord componentpanY- the value for thepanYrecord componentzoom- the value for thezoomrecord component
-
-
Method Details
-
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. -
hashCode
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. -
equals
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. All components in this record class are compared with '=='. -
panX
public double panX()Returns the value of thepanXrecord component.- Returns:
- the value of the
panXrecord component
-
panY
public double panY()Returns the value of thepanYrecord component.- Returns:
- the value of the
panYrecord component
-
zoom
public float zoom()Returns the value of thezoomrecord component.- Returns:
- the value of the
zoomrecord component
-