Package io.jmix.samples.restservice.app
Record Class SampleService.MultipleParamsPojo
java.lang.Object
java.lang.Record
io.jmix.samples.restservice.app.SampleService.MultipleParamsPojo
- Enclosing class:
- SampleService
public static record SampleService.MultipleParamsPojo(int number, String str, Customer entity, SampleService.SamplePojo pojo)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMultipleParamsPojo
(int number, String str, Customer entity, SampleService.SamplePojo pojo) Creates an instance of aMultipleParamsPojo
record class. -
Method Summary
Modifier and TypeMethodDescriptionentity()
Returns the value of theentity
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.int
number()
Returns the value of thenumber
record component.pojo()
Returns the value of thepojo
record component.str()
Returns the value of thestr
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
MultipleParamsPojo
Creates an instance of aMultipleParamsPojo
record class.- Parameters:
number
- the value for thenumber
record componentstr
- the value for thestr
record componententity
- the value for theentity
record componentpojo
- the value for thepojo
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 '=='. -
number
public int number()Returns the value of thenumber
record component.- Returns:
- the value of the
number
record component
-
str
Returns the value of thestr
record component.- Returns:
- the value of the
str
record component
-
entity
Returns the value of theentity
record component.- Returns:
- the value of the
entity
record component
-
pojo
Returns the value of thepojo
record component.- Returns:
- the value of the
pojo
record component
-