public static enum ImageSqlHelper.PhotoSortDescriptor extends java.lang.Enum<ImageSqlHelper.PhotoSortDescriptor>
枚举常量和说明 |
---|
Customize
自定义排序方式
|
Date_Added
根据照片添加时间排序
|
Date_Modified
根据照片修改时间排序
|
限定符和类型 | 方法和说明 |
---|---|
ImageSqlHelper.PhotoSortDescriptor |
setDesc(boolean desc)
排序方式
|
ImageSqlHelper.PhotoSortDescriptor |
setKey(java.lang.String key)
设置排序字段 通过Media设置
|
static ImageSqlHelper.PhotoSortDescriptor |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ImageSqlHelper.PhotoSortDescriptor[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ImageSqlHelper.PhotoSortDescriptor Date_Added
public static final ImageSqlHelper.PhotoSortDescriptor Date_Modified
public static final ImageSqlHelper.PhotoSortDescriptor Customize
public static ImageSqlHelper.PhotoSortDescriptor[] values()
for (ImageSqlHelper.PhotoSortDescriptor c : ImageSqlHelper.PhotoSortDescriptor.values()) System.out.println(c);
public static ImageSqlHelper.PhotoSortDescriptor valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public ImageSqlHelper.PhotoSortDescriptor setKey(java.lang.String key)
key
- 排序的字段名称public ImageSqlHelper.PhotoSortDescriptor setDesc(boolean desc)
desc
- true:降序 false:升序