Class AnimalSlice
java.lang.Object
org.bremersee.pagebuilder.model.AbstractSliceDto<Animal>
org.bremersee.pagebuilder.testmodel.AnimalSlice
- All Implemented Interfaces:
Serializable
The type Animal slice.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstantiates a new Animal slice.AnimalSlice(List<? extends Animal> content, int number, int size, boolean hasNext) Instantiates a new Animal slice.AnimalSlice(List<? extends Animal> content, int number, int size, boolean hasNext, SortOrder sort) Instantiates a new Animal slice.AnimalSlice(List<? extends Animal> content, int number, int size, boolean hasNext, org.springframework.data.domain.Sort sort) Instantiates a new Animal slice.AnimalSlice(org.springframework.data.domain.Slice<? extends Animal> slice) Instantiates a new Animal slice. -
Method Summary
Modifier and TypeMethodDescriptionintorg.springframework.data.domain.PageablegetSort()booleanbooleanisFirst()booleanisLast()booleanprotected voidsetContent(List<Animal> 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<Animal> toSlice()Methods inherited from class org.bremersee.pagebuilder.model.AbstractSliceDto
canEqual, equals, getNumber, getSize, hashCode, isNextAvailable, setNextAvailable, setNumber, setSize, toString
-
Field Details
-
-
Constructor Details
-
AnimalSlice
protected AnimalSlice()Instantiates a new Animal slice. -
AnimalSlice
Instantiates a new Animal slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has next
-
AnimalSlice
public AnimalSlice(List<? extends Animal> content, int number, int size, boolean hasNext, SortOrder sort) Instantiates a new Animal slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has nextsort- the sort
-
AnimalSlice
public AnimalSlice(List<? extends Animal> content, int number, int size, boolean hasNext, org.springframework.data.domain.Sort sort) Instantiates a new Animal slice.- Parameters:
content- the contentnumber- the numbersize- the sizehasNext- the has nextsort- the sort
-
AnimalSlice
Instantiates a new Animal slice.- Parameters:
slice- the slice
-
-
Method Details
-
getContent
-
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
-