Record Class EntityThumbnailResource.CustomThumbnailUrl
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.entity.impl.resources.entities.EntityThumbnailResource.CustomThumbnailUrl
- Enclosing class:
EntityThumbnailResource
-
Constructor Summary
ConstructorsConstructorDescriptionCustomThumbnailUrl
(String fieldName, String url, int width, int height) Creates an instance of aCustomThumbnailUrl
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefieldName
record component.final int
hashCode()
Returns a hash code value for this object.int
height()
Returns the value of theheight
record component.final String
toString()
Returns a string representation of this record class.url()
Returns the value of theurl
record component.int
width()
Returns the value of thewidth
record component.
-
Constructor Details
-
CustomThumbnailUrl
Creates an instance of aCustomThumbnailUrl
record class.- Parameters:
fieldName
- the value for thefieldName
record componenturl
- the value for theurl
record componentwidth
- the value for thewidth
record componentheight
- the value for theheight
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 '=='. -
fieldName
Returns the value of thefieldName
record component.- Returns:
- the value of the
fieldName
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
width
public int width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public int height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-