All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quhaodian.data.enums.StoreState Maven / Gradle / Ivy

There is a newer version: 1.8.7
Show newest version
package com.quhaodian.data.enums;

/**
 * 数据存储状态.
 */
public enum StoreState {
  draft, normal, recycle, archive;
  
  @Override
  public String toString() {
    if (name().equals("normal")) {
      return "正常";
    } else if (name().equals("recycle")) {
      return "回收站";
    } else if (name().equals("draft")) {
      return "草稿";
    } else if (name().equals("archive")) {
      return "归档";
    }
    return super.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy