Package nl.vpro.domain.media.search
Class Pager<S extends SortField>
- java.lang.Object
-
- nl.vpro.domain.media.search.Pager<S>
-
- Direct Known Subclasses:
LocationPager
,MediaPager
,SchedulePager
public abstract class Pager<S extends SortField> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Pager.Direction
-
Constructor Summary
Constructors Modifier Constructor Description protected
Pager(long offset, Integer max, S sort, Pager.Direction order)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(@Nullable Object other)
boolean
equals(@Nullable Object o)
@Nullable Integer
getMax()
Long
getOffset()
Pager.Direction
getOrder()
S
getSort()
String
getSortField()
int
hashCode()
boolean
hasOffset()
void
setMax(@Nullable Integer max)
void
setOffset(Long offset)
void
setOrder(Pager.Direction order)
void
setSort(S sort)
@NonNull String
toString()
-
-
-
Constructor Detail
-
Pager
protected Pager(long offset, Integer max, S sort, Pager.Direction order)
-
-
Method Detail
-
getSortField
public String getSortField()
-
hasOffset
public boolean hasOffset()
-
getOffset
public Long getOffset()
-
getMax
public @Nullable Integer getMax()
-
getSort
public S getSort()
-
getOrder
public Pager.Direction getOrder()
-
setOffset
public void setOffset(Long offset)
-
setMax
public void setMax(@Nullable Integer max)
-
setSort
public void setSort(S sort)
-
setOrder
public void setOrder(Pager.Direction order)
-
canEqual
protected boolean canEqual(@Nullable Object other)
-
-