Package org.springframework.hateoas
Class SlicedModel.SliceMetadata
java.lang.Object
org.springframework.hateoas.SlicedModel.SliceMetadata
- Enclosing class:
- SlicedModel<T>
Value object for slice metadata.
- Author:
- Michael Schout
-
Constructor Summary
ModifierConstructorDescriptionprotected
SliceMetadata
(long size, long number) Creates a newSlicedModel.SliceMetadata
from the given size, and slice number. -
Method Summary
-
Constructor Details
-
SliceMetadata
protected SliceMetadata() -
SliceMetadata
public SliceMetadata(long size, long number) Creates a newSlicedModel.SliceMetadata
from the given size, and slice number.- Parameters:
size
- must be greater or equal to zero.number
- zero-indexed slice number, greater or equal to zero.
-
-
Method Details
-
getSize
public long getSize()Returns the requested size of the slice.- Returns:
- the size a positive long.
-
getNumber
public long getNumber()Returns the number of the current slice.- Returns:
- the number a positive long.
-
toString
-
equals
-
hashCode
public int hashCode()
-