Package com.vaadin.flow.component.page
Record Class ScreenOrientationData
java.lang.Object
java.lang.Record
com.vaadin.flow.component.page.ScreenOrientationData
- Record Components:
type- the screen orientation typeangle- the screen orientation angle in degrees
- All Implemented Interfaces:
Serializable
public record ScreenOrientationData(ScreenOrientation type, int angle)
extends Record
implements Serializable
Represents the current screen orientation state, including the orientation
type and the angle of rotation.
- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScreenOrientationData(ScreenOrientation type, int angle) Creates an instance of aScreenOrientationDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionintangle()Returns the value of theanglerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
angle
public int angle()Returns the value of theanglerecord component.- Returns:
- the value of the
anglerecord component
-