Record Class ImageUtils.Padding
java.lang.Object
java.lang.Record
generic.util.image.ImageUtils.Padding
- Record Components:
top- top paddingleft- left paddingright- right paddingbottom- bottom padding
- Enclosing class:
ImageUtils
Four int values that represent padding on each side of an image
-
Constructor Summary
ConstructorsConstructorDescriptionPadding(int top, int left, int right, int bottom) Creates an instance of aPaddingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Padding
public Padding(int top, int left, int right, int bottom) Creates an instance of aPaddingrecord class.
-
-
Method Details
-
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. -
top
-
left
-
right
-
bottom
-