Package io.lettuce.core
Class SortArgs.Builder
- java.lang.Object
-
- io.lettuce.core.SortArgs.Builder
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SortArgs
alpha()
Creates newSortArgs
setting ALPHA.static SortArgs
asc()
Creates newSortArgs
setting ASC.static SortArgs
by(String pattern)
Creates newSortArgs
setting PATTERN.static SortArgs
desc()
Creates newSortArgs
setting DESC.static SortArgs
get(String pattern)
Creates newSortArgs
setting GET.static SortArgs
limit(long offset, long count)
Creates newSortArgs
setting LIMIT.
-
-
-
Method Detail
-
by
public static SortArgs by(String pattern)
Creates newSortArgs
setting PATTERN.- Parameters:
pattern
- must not benull
.- Returns:
- new
SortArgs
with PATTERN set. - See Also:
SortArgs.by(String)
-
limit
public static SortArgs limit(long offset, long count)
Creates newSortArgs
setting LIMIT.- Parameters:
offset
-count
-- Returns:
- new
SortArgs
with LIMIT set. - See Also:
SortArgs.limit(long, long)
-
get
public static SortArgs get(String pattern)
Creates newSortArgs
setting GET.- Parameters:
pattern
- must not benull
.- Returns:
- new
SortArgs
with GET set. - See Also:
SortArgs.by(String)
-
asc
public static SortArgs asc()
Creates newSortArgs
setting ASC.- Returns:
- new
SortArgs
with ASC set. - See Also:
SortArgs.asc()
-
desc
public static SortArgs desc()
Creates newSortArgs
setting DESC.- Returns:
- new
SortArgs
with DESC set. - See Also:
SortArgs.desc()
-
alpha
public static SortArgs alpha()
Creates newSortArgs
setting ALPHA.- Returns:
- new
SortArgs
with ALPHA set. - See Also:
SortArgs.alpha()
-
-