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 aIconSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintfinal booleanIndicates whether some other object is "equal to" this one.intintgetWidth()final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intordinal()final StringtoString()Returns a string representation of this record class.static IconSize[]values()intwidth()Returns the value of thewidthrecord 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:
compareToin 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 thecomparemethod from their corresponding wrapper classes. -
width
-
height
-