public class Limit extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Limit(Long offset,
Long count) |
| Modifier and Type | Method and Description |
|---|---|
static Limit |
create(long offset,
long count)
|
static Limit |
from(long count)
Creates a
Limit given count. |
long |
getCount() |
long |
getOffset() |
boolean |
isLimited() |
String |
toString() |
static Limit |
unlimited() |
public static Limit unlimited()
public static Limit create(long offset, long count)
offset - the offset.count - the limit count.Limitpublic static Limit from(long count)
Limit given count.count - the limit count.Limit.public long getOffset()
public long getCount()
public boolean isLimited()
true if the Limit contains a limitation.Copyright © 2021 lettuce.io. All rights reserved.