Class AddressSlice
java.lang.Object
org.bremersee.pagebuilder.model.AbstractSliceDto<Address>
org.bremersee.pagebuilder.model.JsonSliceDto<Address>
org.bremersee.pagebuilder.testmodel.AddressSlice
- All Implemented Interfaces:
Serializable
The type Address slice.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddressSlice(List<? extends Address> content, int number, int size, boolean hasNext) Instantiates a new Address slice.AddressSlice(List<? extends Address> content, int number, int size, boolean hasNext, SortOrder sort) Instantiates a new Address slice.AddressSlice(List<? extends Address> content, int number, int size, boolean hasNext, org.springframework.data.domain.Sort sort) Instantiates a new Address slice.AddressSlice(org.springframework.data.domain.Slice<? extends Address> slice) Instantiates a new Address slice. -
Method Summary
Modifier and TypeMethodDescriptionintorg.springframework.data.domain.PageablegetSort()booleanbooleanisFirst()booleanisLast()booleanprotected voidsetContent(List<Address> arg0) protected voidsetContentPresent(boolean arg0) protected voidsetFirst(boolean arg0) protected voidsetLast(boolean arg0) protected voidsetNumberOfElements(int arg0) protected voidsetPreviousAvailable(boolean arg0) protected voidorg.springframework.data.domain.Slice<Address> toSlice()Methods inherited from class org.bremersee.pagebuilder.model.JsonSliceDto
canEqual, equals, getContent, hashCode, toStringMethods inherited from class org.bremersee.pagebuilder.model.AbstractSliceDto
getNumber, getSize, isNextAvailable, setNextAvailable, setNumber, setSize
-
Field Details
-
-
Constructor Details
-
AddressSlice
Instantiates a new Address slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has next
-
AddressSlice
public AddressSlice(List<? extends Address> content, int number, int size, boolean hasNext, SortOrder sort) Instantiates a new Address slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has nextsort- the sort
-
AddressSlice
public AddressSlice(List<? extends Address> content, int number, int size, boolean hasNext, org.springframework.data.domain.Sort sort) Instantiates a new Address slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has nextsort- the sort
-
AddressSlice
Instantiates a new Address slice.- Parameters:
slice- the slice
-
-
Method Details
-
setContent
-
isContentPresent
public boolean isContentPresent() -
setContentPresent
protected void setContentPresent(boolean arg0) -
getSort
-
getNumberOfElements
public int getNumberOfElements() -
setNumberOfElements
protected void setNumberOfElements(int arg0) -
isFirst
public boolean isFirst() -
setFirst
protected void setFirst(boolean arg0) -
isLast
public boolean isLast() -
setLast
protected void setLast(boolean arg0) -
isPreviousAvailable
public boolean isPreviousAvailable() -
setPreviousAvailable
protected void setPreviousAvailable(boolean arg0) -
getPageable
public org.springframework.data.domain.Pageable getPageable() -
toSlice
-
setSort
-