Package org.eclipse.swt.internal
Record Class DPIUtil.ElementAtZoom<T>
java.lang.Object
java.lang.Record
org.eclipse.swt.internal.DPIUtil.ElementAtZoom<T>
- Type Parameters:
T
- type of the element to be presented, e.g.,ImageData
- Enclosing class:
- DPIUtil
Represents an element, such as some image data, at a specific zoom level.
-
Constructor Summary
ConstructorDescriptionElementAtZoom
(T element, int zoom) Creates an instance of aElementAtZoom
record class. -
Method Summary
Modifier and TypeMethodDescriptionelement()
Returns the value of theelement
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.int
zoom()
Returns the value of thezoom
record component.
-
Constructor Details
-
ElementAtZoom
Creates an instance of aElementAtZoom
record class.- Parameters:
element
- the value for theelement
record componentzoom
- the value for thezoom
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
element
Returns the value of theelement
record component.- Returns:
- the value of the
element
record component
-
zoom
public int zoom()Returns the value of thezoom
record component.- Returns:
- the value of the
zoom
record component
-