Record Class ODataRequestParam
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.core.odata.ODataRequestParam
- Record Components:
top
- 最大返回条数skip
- 偏移量
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<ODataQueryOption>
public record ODataRequestParam(Integer top, Integer skip)
extends Record
implements io.github.xezzon.tao.trait.Into<ODataQueryOption>
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionODataRequestParam
(Integer top, Integer skip) Creates an instance of aODataRequestParam
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.into()
skip()
Returns the value of theskip
record component.top()
Returns the value of thetop
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
into
- Specified by:
into
in interfaceio.github.xezzon.tao.trait.Into<ODataQueryOption>
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
top
Returns the value of thetop
record component.- Returns:
- the value of the
top
record component
-
skip
Returns the value of theskip
record component.- Returns:
- the value of the
skip
record component
-