Record Class IconSize
java.lang.Object
java.lang.Record
ca.phon.util.icons.IconSize
- Record Components:
width
-height
-
- All Implemented Interfaces:
Comparable<IconSize>
Icons size used by IconManager
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIconSize
(int width, int height) Creates an instance of aIconSize
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
final boolean
Indicates whether some other object is "equal to" this one.int
int
getWidth()
final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.int
ordinal()
final String
toString()
Returns a string representation of this record class.static IconSize[]
values()
int
width()
Returns the value of thewidth
record component.
-
Field Details
-
XXSMALL
-
XSMALL
-
SMALL
-
MEDIUM
-
MEDIUM_LARGE
-
LARGE
-
XLARGE
-
XXLARGE
-
-
Constructor Details
-
IconSize
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getHiDPISize
-
values
-
ordinal
public int ordinal() -
compareTo
- Specified by:
compareTo
in interfaceComparable<IconSize>
-
toString
-
hashCode
-
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 thecompare
method from their corresponding wrapper classes. -
width
-
height
-